• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about servlet life cycle

 
Eliot Skywalker
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if the container called destroy() on a servlet but a request comes in?
Will the container initialize it again?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eliot,
The container will create a new instance to serve the new incoming request.
The instance that has been destroyed will not be reused.
Nick.
 
Eliot Skywalker
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Nick, I guess I got it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic