-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hani Suleiman
Sent: 14 August 2000 17:31
To: Orion-Interest
Subject: RE: posting fourth time but did not got any answerThis isn't a very robust approach, because finalize is not guaranteed to be called. It might or might not. In fact in case of server shutdown, it's pretty unlikely to get called. For servlets, you should do your shutdown stuff in the destroy method, which the server will call before it terminates (assuming it's a graceful shutdown, of course).
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting
> Sent: Sunday, August 13, 2000 9:32 AM
> To: Orion-Interest
> Subject: RE: posting fourth time but did not got any answer
>
>
> For server shutdown, a quick hack is to create a servlet that loads on
> server startup, has an empty init method, no service methods,
> and a finalize
> that does something. finalize will get called when the class
> instance (of
> which there is only one, of course) is garbage collected,
> which happens to
> be right before the JVM terminates ;)
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> Christian Sell
> > Sent: Sunday, August 13, 2000 14:32
> > To: Orion-Interest
> > Cc: Orion-Interest
> > Subject: Re: posting fourth time but did not got any answer
> >
> >
> > for server startup, the following should do:
> >
> > 1. specify load-on-startup for your servlet in web.xml
> > 2. specify load-on-startup for your web application in web-site.xml
> >
> > for server shutdown, I have no idea
> >
> > > Khan Kamran schrieb:
> > >
> > > Hi all,
> > >
> > > I want to know how i can run my servlet at orion server
> startup and
> > > shutdown.
> > >
> > >
> Pleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaas
> > >
> > >
> hellllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
> lllllllllp
> > >
> > > Thanks
> > > Kamran
> >
>
>
Title: RE: posting fourth time but did not got any answer
I know
it's not very robust. That's why I designated it a quick
hack.
- posting fourth time but did not got any answer Khan Kamran
- Re: posting fourth time but did not got any an... Christian Sell
- RE: posting fourth time but did not got an... J.T. Wenting
- Re: posting fourth time but did not got any an... David Sierra Fernandez
- RE: posting fourth time but did not got any an... Hani Suleiman
- Fw: Re: posting fourth time but did not go... J.T. Wenting
- Fw: Re: posting fourth time but did not got an... Stanislav Bernatsky
- RE: posting fourth time but did not got any an... Khan Kamran
- Re: posting fourth time but did not got any an... Christian Sell
- Re: posting fourth time but did not got any an... David Sierra Fernandez