aspose file tools
The moose likes Servlets and the fly likes If two clients call the same servlet... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "If two clients call the same servlet..." Watch "If two clients call the same servlet..." New topic
Author

If two clients call the same servlet...

chinnu chinnu
Greenhorn

Joined: May 18, 2005
Posts: 4
if two clients call same servlet…what will happen means init() method called by only once what will happen if second client calls same servlet?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by chinnu chinnu:
if two clients call same servlet…what will happen means init() method called by only once what will happen if second client calls same servlet?


init only gets called when the servlet is initialized. No subsequent requests will cause init to be called.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: If two clients call the same servlet...
 
Similar Threads
Service Locator
pls. Lisa Foster and friends
Will the singleton use on EJBObject cause problem?
init() called at the same time
destroy method