• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet in different JVMs

 
thomas jacob
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??

Regards
Jigo
 
Doyle Matt
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic