On Wed, Apr 14, 2004 at 11:16:09AM +0530, [EMAIL PROTECTED] wrote:
: How do I control the webcontainer from calling the destroy() method of the
: servlets or JSP? Where do I make the appropriate settings?

Quoting the Servlet Spec v2.3, p 26:

- - - 8< - - - - - - - - - - - - -
SRV.2.3.4 End of Service

The servlet container is not required to keep a servlet loaded for any
particular period of time. A servlet instance may be kept active in a
servlet container for a period of milliseconds, for the lifetime of the
servlet container (which could be a number of days, months, or years),
or any amount of time in between.

When the servlet container determines that a servlet should be removed
from service, it calls the destroy method of the Servlet interface to
allow the servlet to release any resources it is using and save any
persistent state. For example, the container may do this when it wants
to conserve memory resources, or when it itself is being shut down.
- - - >8 - - - - - - - - - - - - -

Short version: not possible.

-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