Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet reuse across context?

 
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
 
crispy bacon. crispy 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!