Cleanly close Session an repository in the CoreSessionProvider
--------------------------------------------------------------

                 Key: NXP-4509
                 URL: http://jira.nuxeo.org/browse/NXP-4509
             Project: Nuxeo Enterprise Platform
          Issue Type: Improvement
            Reporter: Damien Metzler


In the initial implementation of CoreSessionProvider, the sessions injected is 
not closed and the repository not shutted down. 
Since we use Guice 1.0 there is no mean to register for injection events  and 
can't detect if a session was provided. 

A small enhancement should be to track the sessions injected in the 
NuxeoCoreRunner, and close them in the afterRun method. The CoreSessionProvider 
must call the registering method of NuxeoCoreRunner.

The only problem is that if one want to build its own NuxeoCoreProvider without 
registering the injection, it won't work and leave the repo open. 




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to