Re: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xavier, On 1/29/13 5:35 AM, Xavier Dury wrote: > Ok nevermind, I just found the closeMethod attribute on Resource > (http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Definitions) Glad > you found that -- it's what I was going

RE: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Xavier Dury
Ok nevermind, I just found the closeMethod attribute on Resource (http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Definitions) Thanks, Xavier > From: kal...@hotmail.com > To: users@tomcat.apache.org > Subject: RE: Destroying resources created with a custom Obje

RE: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Xavier Dury
resources? Thanks, Xavier > From: kal...@hotmail.com > To: users@tomcat.apache.org > Subject: RE: Destroying resources created with a custom ObjectFactory > Date: Tue, 29 Jan 2013 09:22:36 +0100 > > Hi, > Here is my context.xml > type="net.sf.ehcache.CacheManager&quo

RE: Destroying resources created with a custom ObjectFactory

2013-01-29 Thread Xavier Dury
cheManager; }} Xavier > Date: Mon, 28 Jan 2013 13:07:15 -0500 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: FW: Destroying resources created with a custom ObjectFactory > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Xavier, >

Re: FW: Destroying resources created with a custom ObjectFactory

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xavier, On 1/28/13 12:20 PM, Xavier Dury wrote: > I'm using Tomcat 7.0.x and made a custom > javax.naming.spi.ObjectFactory to create a Ehcache manager, > exposing a configured CacheManager to an application through > (local) JNDI. My question is:

FW: Destroying resources created with a custom ObjectFactory

2013-01-28 Thread Xavier Dury
Hi, I'm using Tomcat 7.0.x and made a custom javax.naming.spi.ObjectFactory to create a Ehcache manager, exposing a configured CacheManager to an application through (local) JNDI. My question is: how/where can I call the CacheManager.shutdown() method when my application is (re|un)deployed? I t