On Thu, Aug 12, 2004 at 11:57:04AM -0400, Jignesh Patel wrote:
: Thank you, we tried to stop using scheduler.shutdown method in quartz
: servlet's destroy method but it is not working as expected.

You *really* want to use a ContextListener for this: it provides the
equivalents of a servlet's init() and destroy() but for the entire
webapp.  In turn, those are only called when the webapp is activated and
deactivated, for lack of better terminology. ;)


: Also I would like to clarify one more doubt when load-on-startup method
: called will it call init method of the servlet all the time.ie. Even
: when tomcat remove the servlet when it is not used for long time and
: again calls back when load increased.

Servlet#init()
"Called by the servlet container to indicate to a servlet that the
servlet is being placed into service.

The servlet container calls the init method exactly once after
instantiating the servlet. The init method must complete successfully
before the servlet can receive any requests.

The servlet container cannot place the servlet into service if the init
method"

(J2EE docs)

So if a servlet is taken in and out of service during a context's
runtime...

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to