• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

When is servlet destroyed

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I brought this back from the farm where they grow the tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic