jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1827) SessionImpl should have @PreDestroy annotation a method to shut down cleanly from within container
Date Tue, 18 May 2010 10:51:42 GMT

     [ https://issues.apache.org/jira/browse/JCR-1827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

angela updated JCR-1827:
------------------------

    Component/s: jackrabbit-core

> SessionImpl should have @PreDestroy annotation a method to shut down cleanly from within
container
> --------------------------------------------------------------------------------------------------
>
>                 Key: JCR-1827
>                 URL: https://issues.apache.org/jira/browse/JCR-1827
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core
>    Affects Versions: core 1.4.6
>            Reporter: Chris Wilkes
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> I'm using Spring and noticed that when I use an ObservationManager to register an eventListener
tomcat doesn't shut down properly as the ClientEventPoll thread is still running.  What I've
done is annotate a method with the javax @PreDestroy annotation to unregister all listeners
and to also call .terminate() on the ClientEventPoll in the ClientObservationManager.
> Ideally this would be done in SessionImpl so that it could go through all the Workspaces
and do the same.
> @PreDestroy is a standard java annotation and isn't tied to spring or tomcat.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message