tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Moseley <...@maz.org>
Subject end-of-lifecycle control for naming resources
Date Wed, 05 Oct 2005 23:03:54 GMT
i'm setting up an instance of javax.jcr.Repository as a naming resource 
like so:

   <Resource name="jcr/cosmo"
      type="org.apache.jackrabbit.core.jndi.BindableRepository"
      factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
      configFilePath="etc/repository.xml"
      repHomeDir="data/repository"/>

this implementation of Repository requires a shutdown() method to be 
executed when the webapp or container is being shut down, in order to 
clean up resources, release the lock on the repository's filesystem, etc.

is there any sort of end-of-lifecycle hook for naming resources, or am i 
forced to write a servlet context listener to take care of this?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message