Godmar,

--- On Tue, 4/13/10 at 9:22 PM, Godmar Back <[email protected]> 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
> besides Tomcat?
> 

Have you tried implementing a ServletContextListener?

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html

- Bob

PS Tomcat is not a J2EE container.


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to