File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
init and service in same thread?
Joined: Jan 04, 2011
Jun 11, 2011 08:45:08
when i call the
for the first time after the its deployment
do the init() method is called by the same thread which is calling the service method???
Author and ninkuma
Joined: Jan 10, 2002
Jun 11, 2011 10:34:42
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
Books by Bear
Joined: Aug 03, 2009
Jun 13, 2011 00:25:14
. you may get idea..
Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
I agree. Here's the link:
subject: init and service in same thread?
init() called at the same time
Thred Should run even after Program terminates
Constructor in servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015