• Post Reply Bookmark Topic Watch Topic
  • New Topic

Controlling servlet instances

 
Hari Srinivas
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys.... I have a doubt

I have an index.jsp page which passes on the some parameters to a servlet which in turn uses different bean components to appropriately process the request. If the same page is requested by different clients (i.e. user accesses it from different machines), are different servlet instances created

How can i make sure that a single servlet instance can be used to process multiple requests.

Thanks to all in advance
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Govind SrinivasaRaghavan:
...are different servlet instances created[?]


No.
One instance will be created.
 
Hari Srinivas
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No matter from which and how many client machines you access, it all hits the server which has only one copy of a servlet created! :thumb:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!