In distributed web app, there would be one instance of a particular servlet in a JVM. Each JVM still have only a single instance of that servlet.
My Doubt: If there are two different JVM, will there be two different instances of the servlet??
posted 10 years ago
Yes. One servlet per JVM One Servlet One JVM. Two Servlets (of the same class and <servlet-name> in web.xml) cannot exist in a single JVM. therefor you can have Two servlets (of the same class and <servlet-name> in web.xml) in Two JVM (correspondingly)
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads