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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
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://aspose.com/file-tools
 
subject: If two clients call the same servlet...
 
Similar Threads
Will the singleton use on EJBObject cause problem?
pls. Lisa Foster and friends
init() called at the same time
destroy method
Service Locator