Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Handling resources

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marty,
Has the new Servlet specification provided some better way to handle memory resources.
At time we do see some DB connection remaining open or session is not invalidated.
How better has it been described in you book, to handle this resources carefully.
Hope I am clear.
MB
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding session invalidation server have thier own default timeout period(in case you dont set it) after which the session will cease to exist.
There was a proposal to add a logout method in servlet 2.4 but had been defered for future version.
Some servers like weblogic 8.1 can detect database connection leaks. Alternatively, you can write you thread which will reclaim leaked connections.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I saw such server-specific information like configuration are included in the TOC of the book... He even explans more details about configuration in Tomcat than in JRun and Resin...
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!