On Thu, May 29, 2008 at 12:11 PM, Robert J. Carr <firstname.lastname@example.org
> 1. When I unload and then reload the app, the new instance of the app can'tMy application runs in tomcat and I can deploy and undeploy my app and
> start the database. I have to stop and then start Tomcat.
the database is fine and I'm able to reconnect. Are you unloading the
database when you undeploy?
Hmmm. Perhaps not. What exactly do you mean by "unloading the database"?
> 2. When I try to run a second app that uses Tomcat, it can't start the
If you are using embedded derby, as far as I know, you can only have
one active connection to it at a time.
You might be able to get around this using JNDI data sources, which I
think ties the connection to tomcat and not to your application. I
haven't confirmed this, but it is worth a shot if you're not already
doing it (and a better practice as well).