aspose file tools
The moose likes Servlets and the fly likes relase resource in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "relase resource in servlet" Watch "relase resource in servlet" New topic
Author

relase resource in servlet

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Servlet uses many resources in it ,when the session time out ,how to release the resource used in servlet? and how teh capture the same event
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56202
    
  13

Such as?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

How are you storing session-specific data in the servlet?
Rahul Nair
Ranch Hand

Joined: Dec 01, 2007
Posts: 136

For Session Time Out (i.e. session destroyed) event, you may implement HttpSessionListener and override the method sessionDestroyed to release acquired resources which are used in application/ servlet.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: relase resource in servlet
 
Similar Threads
Session and request capacity
how to .properties file
GWT and IE 6
Servlet Output
How to display a progress page for long run servlet?