This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Handling resources  RSS feed

 
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!