• Post Reply Bookmark Topic Watch Topic
  • New Topic

true or false?

 
shi lei
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the servlet container may maintain multiple instance of the servlet calss for a class.

some vague
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the deployement descriptor, if you've defined different servlets using the same class, I think that the container will have multiple instances of the same class.
However, it will keep only one instance per servlet (there may be several if the servlet implements SingleThreadModel)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!