• Post Reply Bookmark Topic Watch Topic
  • New Topic

true or false?  RSS feed

 
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)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!