• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet reuse across context?  RSS feed

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if servlets are being reused across context? Or they only serve requests within the context?
Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The entire intent of Sun's design of the servlet API has been to ensure that each context (web application) is entirely independent. The idea being that you want to be able to drop a new application in without changeing the behavior of all the others.
You can run the same servlet code in different applications of course but each context gets a new instance.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!