This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

instance persistance in servlets

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the meaning of instancepersistance in the servlets topic
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going to guess that you are talking about the fact that a servlet container creates a single instance of a servlet class and that instance may persist in memory for an indefinate amount of time and service any number of requests.
 
S Venkatesh
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever u instantiate a servlet, only a single servlet instance persists in the web container for processing your requests. All your requests to this servlets is handled by the single instance of that servlet. This servlet is removed form your web container only when your application server is brought down or on redeployment.

Thanks
Venkatesh S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic