Re: Sun one WS : clean shutdown

From: William Brogden (wbrogden_at_bga.com)
Date: 03/31/04


Date: Tue, 30 Mar 2004 14:47:07 -0800


"asaguden" <asaguden@lycos.com> wrote in message
news:b190197d.0403301136.76aa5332@posting.google.com...
> Thank you for your input.
>
> I have read some of it and I can only agree with you,
> but now my problem seems to be that SUN ONE WEB Server,
> doesnt call servlet.destroy() - it just kills the process
> 'kill -9'...

Are you saying that Sun One does not provide some sort of orderly
shutdown!?!?

With Tomcat you have to run the shutdown.bat to get orderly shutdown
with destroy() methods called, etc. - if you kill it with ctrl-C then
destroy
does not get called.

>
> And I have posted that question [does SUN ONE call destroy()?] more
> than once - no answer.
> Thanks SUN for keeping the light shine on Java development. :-(
>
> / asaguden
>
> "William Brogden" <wbrogden@bga.com> wrote in message
news:<40697619$1@giga.realtime.net>...
> > "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 =---

----== 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 =---



Relevant Pages

  • Re: Star Wars Vs Star Trek?
    ... :> Star Trek has the Genesis torpedo - can destroy and build a planet with ... : I think Jiahaur means the Sun Crusher: ... The torpedoes couldn't actually destroy the sun, ... The Tox Uthat simply turns /off/ the sun: ...
    (alt.fan.starwars)
  • Re: YASID - Astronauts Return To Depopulated Earth
    ... it sounds like the plot of Time Fuse...by a well known sci fi author ... to the star they're journeying to ...and the star goes nova because of ... speed so that they don't destroy the sun by reappearing in the same ... they had destroyed their own sun, and of course, now had nowhere to go. ...
    (rec.arts.sf.written)
  • Re: Absence of spam
    ... round and round. ... Oh, and notice the sun isn't shining any more, Drink. ... and I'll get this abstrad pogrom jbexvat eventually if it kills ... ...
    (uk.rec.sheds)
  • Re: Star Wars Vs Star Trek?
    ... >> the most powerful weapon in star wars: ... One>> alone can destroy a planet ... ... I think Jiahaur means the Sun Crusher: ... A Guide to the Star Wars Universe ...
    (alt.fan.starwars)
  • Re: YASID - Astronauts Return To Depopulated Earth
    ... to the star they're journeying to ...and the star goes nova because of ... speed so that they don't destroy the sun by reappearing in the same ... they had destroyed their own sun, and of course, now had nowhere to go. ... Presumably they had no FTL radio equivalents. ...
    (rec.arts.sf.written)