This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
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

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