aspose file tools
The moose likes JDBC and Relational Databases and the fly likes relinquishing database connections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "relinquishing database connections" Watch "relinquishing database connections" New topic
Author

relinquishing database connections

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
We have a web app whose connection pooling code is modeled on basic example stuff on the web (classes like ConnectionPool, PooledConnection, etc), and my understanding is that when we restart Tomcat, all the ODBC connections will be reset on the database side. Now, we know that our particular ODBC driver has a problem which results in them not being reset sometimes, but generally it does release them.

Now, I'm wondering how the driver even knows to release them to begin with (when it's working right, I mean). Does Tomcat specifically tell the driver a special command to release all the connections or something like that?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62307
    
  68

Since the question concerns the inner workings of Tomcat, I'm moving this along to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: relinquishing database connections