Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init and service in same thread?

 
rinku jain
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i call the servlet for the first time after the its deployment
do the init() method is called by the same thread which is calling the service method???
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlikely. The init() lifecycle method can be called at any time before the first request. it does not have to wait until a request is made.
 
pradeep gamage
Ranch Hand
Posts: 85
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this webpage . you may get idea..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic