Re: Sun one WS : clean shutdown

From: asaguden (asaguden_at_lycos.com)
Date: 03/30/04

  • Next message: Gene Davis: "[ANN]Learning Java Bindings for OpenGL (JOGL)"
    Date: 29 Mar 2004 23:08:00 -0800
    
    

    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?

    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?

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


  • Next message: Gene Davis: "[ANN]Learning Java Bindings for OpenGL (JOGL)"

    Relevant Pages

    • Re: using finalize() to persist objects
      ... > the web server, ... you should be able to serialize in the destroy() method. ... servlet instance and replace it with a new instance of the same servlet ...
      (comp.lang.java.programmer)
    • Initializing Servlets
      ... servlet's init() method can be expected? ... I want to open a file that is available for any servlet thread to ... initand destroy() methods? ...
      (comp.lang.java.programmer)
    • Re: Sun one WS : clean shutdown
      ... The servlet engine is allowed to discard/destroy servlets arbitrarily ... can never do that if there is an active request. ... >> I believe that the servlet destroy() method is what you want. ...
      (comp.lang.java.programmer)
    • Re: ending a session in servlet
      ... i have a problem with my servlet.i had bound an rmi object with a ... servlet page.The thing i need is i have to invoke the call to an method ... destroy() method of servlet but it is invoked only when the server is ... You can use a session listener for that ...
      (comp.lang.java.programmer)
    • Re: Servlet image problem
      ... I thought that the correct address to specify was that specified in ... I would like to use a working servlet that generates png images as ... When I access the servlet page generating the png image I can see the ... When trying to use such a servlet as src element of a img tag in a jsp ...
      (comp.lang.java.programmer)