Actaully, that was the way I tried first. But on NT I have noticed that finalize does
not
always get called. In the finalize method I simply print to the log file. But the stuff
that
I print out only appears every now and then.
Sandy
Burt Alexander wrote:
> Sandy Ward wrote:
>
> > Hey all,
> >
> > I was wondering what the best way to deal with clean up when you shut down the
> > JServ?
> >
> > Currently I start Apache and JServ starts automatically. When I shut down Apache,
> > JServ shuts down. What I would like to do is detect that JServ is going down and
> > do clean up. (Save session etc....)
> >
> > Thanks,
> > Sandy
> >
> > -- --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > READ THE FAQ!!!! <http://java.apache.org/faq/>
> > Archives and Other: <http://java.apache.org/main/mail.html/>
> > Problems?: [EMAIL PROTECTED]
>
> One way would be to override the finalize() method of Object of the objects you are
> concerned about.
>
> Burt.
>
> -- --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> READ THE FAQ!!!! <http://java.apache.org/faq/>
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
-- --------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]