Destroying bean and DB connection on browser exit
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mohammed_Dessouky
Posted On:   Friday, September 6, 2002 09:12 AM

I have a JavaBean that manages all my database connectivity issues. How do I get the bean to disconnect and clean up when a user exits the browser ?

Re: Destroying bean and DB connection on browser exit

Posted By:   guru_prasanth  
Posted On:   Wednesday, September 18, 2002 01:44 AM

hi,
if u r using servlets or jsp then there is a method in servlet session called getlastaccessedtime() of that servlet.just get the current time and getlast accessed time and if the time limit crosses then close the connection.
i think this is a way u can do it.
About | Sitemap | Contact