Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-25 Thread Godmar Back
On Sun, Apr 25, 2010 at 12:29 PM, users-digest-h...@tomcat.apache.orgwrote: -- Forwarded message -- From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Date: Fri, 23 Apr 2010 12:29:26 -0400 Subject: Re: Q: how to obtain

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-25 Thread Pid
On 25/04/2010 18:24, Godmar Back wrote: On Sun, Apr 25, 2010 at 12:29 PM, users-digest-h...@tomcat.apache.orgwrote: -- Forwarded message -- From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Date: Fri, 23 Apr 2010 12:29:26

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Pid
On 23/04/2010 03:48, Godmar Back wrote: Following up on an earlier conversation about how to obtain notification when a WebApp is unloaded/reloaded [1], I was told that registering a ServletContextListener is the only possibility (that is, there is no runtime API.) However, registering a

RE: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Propes, Barry L
Mine (notification) tells me in the logs when this occurs. -Original Message- From: Godmar Back [mailto:god...@gmail.com] Sent: Thursday, April 22, 2010 9:48 PM To: Tomcat Users List Subject: Re: Q: how to obtain notification when a WebApp is unloaded/reloaded? Following up on an

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Godmar, On 4/14/2010 10:20 AM, Godmar Back wrote: I have added a ServletContextListener, but it is very much a solution I strongly dislike. The reason is that my application is layered on top of another application (ZK), and I don't really want to

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 4/23/2010 6:32 AM, Pid wrote: On 23/04/2010 03:48, Godmar Back wrote: However, registering a ServletContextListener doesn't work and leads to me being unable to start the web application.

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-22 Thread Godmar Back
Following up on an earlier conversation about how to obtain notification when a WebApp is unloaded/reloaded [1], I was told that registering a ServletContextListener is the only possibility (that is, there is no runtime API.) However, registering a ServletContextListener doesn't work and leads to

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-14 Thread Pid
On 14/04/2010 05:22, Godmar Back wrote: Hi, I have a simple question I was unable to find an answer to even after 2 hours of reading documentation, APIs, and (partly) Tomcat source code. What about the Servlet Spec? v2.3 - 2.5 are actually surprisingly readable for a spec, sadly the same

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-14 Thread Godmar Back
On Wed, Apr 14, 2010 at 3:17 AM, Pid p...@pidster.com wrote: In my web application, I'm using the 'reloadable='true'' attribute to Context to reload the application automatically when a .class or jar files changes. To avoid a quickly accumulating memory leak, I need to shut down a service

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-14 Thread Godmar Back
On Wed, Apr 14, 2010 at 10:12 AM, Pid p...@pidster.com wrote: For instance, if you look at http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html it says: To recieve (sic) notification events, the implementation class must be configured in the

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-14 Thread David kerber
On 4/14/2010 10:20 AM, Godmar Back wrote: On Wed, Apr 14, 2010 at 10:12 AM, Pidp...@pidster.com wrote: For instance, if you look at http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html it says: To recieve (sic) notification events, the implementation

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-14 Thread Pid
On 14/04/2010 15:31, David kerber wrote: On 4/14/2010 10:20 AM, Godmar Back wrote: On Wed, Apr 14, 2010 at 10:12 AM, Pidp...@pidster.com wrote: For instance, if you look at http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html it says: To recieve

Re: Q: how to obtain notification when a WebApp is unloaded/reloaded?

2010-04-13 Thread Bob Hall
Godmar, --- On Tue, 4/13/10 at 9:22 PM, Godmar Back god...@gmail.com wrote: What API function can be used to notify my application that it is about to be shut down, so that the thread in question can exit? First, is there a standard API that would work also in other J2EE containers