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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to