You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Caldarale, Charles R" <Ch...@unisys.com> on 2007/09/07 20:09:18 UTC

RE: Closing Hibernate's SessionFactory when undeploying (or when is afilter destroyed)

> From: wild_oscar [mailto:miguel@almeida.at] 
> Subject: Closing Hibernate's SessionFactory when undeploying 
> (or when is afilter destroyed)
> 
> How can I call this method right before tomcat undeploys the 
> application?

Try implementing a ServletContextListener; see section 10 of the servlet
spec for details.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org