This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes init and service in same thread? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "init and service in same thread?" Watch "init and service in same thread?" New topic

init and service in same thread?

rinku jain

Joined: Jan 04, 2011
Posts: 26
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

Joined: Jan 10, 2002
Posts: 63202

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

Read this webpage . you may get idea..

Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: init and service in same thread?
It's not a secret anymore!