database connectivity at startup

View: New views
1 Messages — Rating Filter:   Alert me  

database connectivity at startup

by Dave Beery :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When my little demo application starts up in tomcat it makes a connection to the database to update the schema if it needs to.

Is there any way to delay this connection instantiation until the app is hit so that it doesn't delay my tomcat startup if I'm working on other applications?

Thanks,

Dave