----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------



Jae Roh wrote:
> What's a safe way to shut down JServ, started
> in manual mode, such that the destroy() method of existing objects
> is called?
> 
> I'm maintaining references to persistent data (database connection
> pooling stuff), in static instance variables, and need to be sure
> that these are cleaned up correctly if jserv is shut down.

Jae-

Two things:
1) Add a destroy() method to your servlets. This method should than call
the destroy() or close() method of the static object that all servlets
are sharing.  This static object should then be responsible for managing
the allocation and deconstruction of shared resources.

2) Exit JServ by adding the paramiter '-s' (without the quotes) to the
end of the command line you used to originally start that JServ
instance.

- MG


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to