dcsimg
How to terminate MySQL connection with session
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ali_ustek
Posted On:   Tuesday, September 12, 2006 08:18 PM

I need to terminate MySQL connection which is created by a jsp page when a session reaches end of life cycle.


Is it possible to terminate the connection with the session?

Is it possible to override the session.invalidate() method so that I can make a call to DatabaseConnection.terminate() at all?

Thanks.

Re: How to terminate MySQL connection with session

Posted By:   Anonymous  
Posted On:   Tuesday, September 12, 2006 11:31 PM

You can create a session listener but why would you want to hold onto a connection this entire time in the session? The database is going to timeout the connection sometime.



Why not use a connection supplied by looking up a Datasource from your app server?
About | Sitemap | Contact