Meaningless Drivel is fun!*
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
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
 
Don't get me started about those stupid light bulbs.
 
subject: If two clients call the same servlet...