Re: Sun one WS : clean shutdown
From: William Brogden (wbrogden_at_bga.com)
Date: 03/30/04
- Next message: Daniel Sjoblom: "Re: JDK1.5, improved FOR loop and generics - How?!"
- Previous message: Matthijs Blaas: "applet caching"
- In reply to: asaguden: "Re: Sun one WS : clean shutdown"
- Next in thread: asaguden: "Re: Sun one WS : clean shutdown"
- Reply: asaguden: "Re: Sun one WS : clean shutdown"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 07:28:48 -0800
"asaguden" <asaguden@lycos.com> wrote in message
news:b190197d.0403292308.1d88e405@posting.google.com...
> Thank you for your reply,
>
> I had a hunch I could use it.
> But how do I know which servlet is 'destroyed' last?
>
> I can specify in my web.xml which one gets loaded first,
> can I specify which on gets removed last?
No - you will have to plan things so that everything that must be
cleaned up is either in one place or has no dependence on the
order of cleanup.
>
> And also on the subject - can I be absolutely certain the servlets NEVER
> gets destroyed more than once during the application lifetime, ie
> can there never be timeout/reload?
The servlet engine is allowed to discard/destroy servlets arbitrarily
if it needs to - for example to reduce memory use - HOWEVER, it
can never do that if there is an active request. A given instance of
a servlet will not be re-used once destroyed - the servlet engine will
have to create a new instance & do init() if a new request comes in.
Downloading the complete servlet spec from java.sun.com is a good
idea.
>
> / asaguden
>
> _______________________
> "William Brogden" <wbrogden@bga.com> wrote in message
news:<4068286d$1@giga.realtime.net>...
> >
> > I believe that the servlet destroy() method is what you want.
> > A correctly functioning servlet engine will call destroy during
> > the shutdown process.
> > Bill
> >
> >
> >
> >
> > ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
News==----
> > http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000
Newsgroups
> > ---= 19 East/West-Coast Specialized Servers - Total Privacy via
Encryption =---
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
- Next message: Daniel Sjoblom: "Re: JDK1.5, improved FOR loop and generics - How?!"
- Previous message: Matthijs Blaas: "applet caching"
- In reply to: asaguden: "Re: Sun one WS : clean shutdown"
- Next in thread: asaguden: "Re: Sun one WS : clean shutdown"
- Reply: asaguden: "Re: Sun one WS : clean shutdown"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|