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)