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
Hi, Here is my context.xml and this is my ObjectFactory: public class CacheManagerFactory implements ObjectFactory { public Object getObjectInstance(Object object, Name jndiName, Context context, Hashtable environment) throws Exception {String configurationFile = null;if (object