The way DatasourceDatabaseTester implements getConnection() is by creating a new object each time:
public IDatabaseConnection getConnection() throws Exception
{
logger.debug("getConnection() - start");
assertTrue\( "DataSource is not set", dataSource\!=null \); return new DatabaseConnection\( dataSource.getConnection\(\), getSchema\(\) \); \}
Calling getConfig() on the returned object will then have no effect since the next call to getConnection() (by the framework) will get a completely new object, which will obviously not have your customizations.
Is this as simple as caching the IDatabaseConnection in that tester?
Hi,
I recommend to overwrite the "getConnection" method and set the config there. This should work for you. Even though its not very beautiful
Rgds,
matthias
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).