[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5563) JndiInfinispanRegionFactory creates region with a stopped cache, if region previously existed

Paul Ferraro (JIRA) noreply at atlassian.com
Mon Sep 13 16:49:18 EDT 2010


JndiInfinispanRegionFactory creates region with a stopped cache, if region previously existed
---------------------------------------------------------------------------------------------

                 Key: HHH-5563
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5563
             Project: Hibernate Core
          Issue Type: Bug
          Components: caching (L2)
    Affects Versions: 3.6.0.Beta4, 3.5.5
            Reporter: Paul Ferraro
         Attachments: patch.txt

Using JndiInfinispanRegionFactory, closing a hibernate session factory triggers the destruction of all associated cache regions and stops the backing caches, though not the cache manager itself (Due to HHH-5512).  If the session factory is restarted (e.g. the same application is redeployed), CacheManager.getCache(...) will return the already existing cache, but with a TERMINATED status.  Consequently, when determining the cache instance for a given region, the region factory must always validate the status of the cache, starting it if necessary.

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

        


More information about the hibernate-issues mailing list