Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When is servlet destroyed

 
Henrik Krievs
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See subj.

Is that totally op to the container to decide ? - or is the servlet destroyed when the final thead is dead ?

/Rgds, Henrik
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Henrik,

Is that totally op to the container to decide ? - or is the servlet destroyed when the final thead is dead?

In the servlet's life cycle, one separate thread == one request and the servlet keeps alive till either the web app is redeployed or the web container shuts down. I suggest you to read HFS from page 101 and the next few ones.

Regards,

Phil.
 
Henrik Krievs
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In the servlet's life cycle, one separate thread == one request and the servlet keeps alive till either the web app is redeployed or the web container shuts down. I suggest you to read HFS from page 101 and the next few ones.


Actually, If you read from 101 and forwards - it doesn't say anything about servlet destruction. <OUTSIDE-HF-S&JST>Can you configure the container to hold a certain amount of servlets ? I can imagine there also must be a container-memory issue here</OUTSIDE-HF-S&JST>

Anyways; I get it - it's not really important (seen from the servlet's point-of-view) - when or how the servlet is being destroyed.

Rgds, Henrik
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic