db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius.Stroffek" <Julius.Strof...@Sun.COM>
Subject Re: openConnection dissapeared from BaseJDBCTestCase.java
Date Tue, 14 Nov 2006 13:40:15 GMT
Daniel John Debrunner wrote:
> I just added a utility method
>
> JDBCDataSource.getDataSource(String dbName)
>
> to obtain a connection to a different database, eg.
>
> ds = JDBCDataSource.getDataSource("otherdb");
> conn = ds.getConnection();
Thanks, Dan.

> With a test that needs concurrent multiple open databases some thought 
> on the setup is needed to ensure the extra databases are created 
> and/or cleaned and shutdown at the end of the test. If multiple tests 
> simply created their own databases and left them lying around then it 
> would cause issues eventually.
How this should by done?

Would it be possible to create a test which passes some attributes to 
JDBC connection? I have not found anything related to this.

Cheers

Julo

Mime
View raw message