db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olav Sandstaa <Olav.Sands...@Sun.COM>
Subject Re: How to start and stop Derby from within a test
Date Fri, 21 Apr 2006 12:50:43 GMT
Deepa Remesh <dremesh@gmail.com> wrote:
> The tests in the harness use ij.startJBMS to get initial connections.
> The connection is obtained by using the properties specified in the
> <test>_app.properties file. ij.startJBMS method can also be used for
> any subsequent connections which use same properties.
> For any subsequent connections which need to use another set of
> attributes (e.g, shutdown), TestUtil.getConnection method can be used.
> This method was recently added and now works for all frameworks. I
> have added a comment to DERBY-950
> (http://issues.apache.org/jira/browse/DERBY-950). Please look at that
> also to see if it helps.

Deepa, Thanks for the information about TestUtil.getConnection for
stopping the database and for getting new connections. Using this
instead for my own implementation based on DriverManager.getConnection
simplified the test code and also made the security exception go away.


View raw message