• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

If two clients call the same servlet...

 
chinnu chinnu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic