[ 
https://jira.terracotta.org/jira//browse/CDV-382?page=comments#action_22741 ] 
            
Antonio Si commented on CDV-382:
--------------------------------

The SessionFactory.close() calls org.hibernate.cache.EhCache.destroy() which 
removes a cache and calls org.hibernate.cache.EhCacheProvider.stop() which 
shutdowns the CacheManager.

For the time being, we are making these 2 methods an no-op when hibernate with 
ehcache as 2nd level cache running in a clustered mode.


> Hibernate SessionFactory.close() will shutdown CacheManager which will cause 
> an IllegalStateException when other nodes try to access the 2nd level cache
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CDV-382
>                 URL: https://jira.terracotta.org/jira//browse/CDV-382
>             Project: Community Development
>          Issue Type: Bug
>          Components: DSO:L1
>    Affects Versions: 2.4.1
>            Reporter: Antonio Si
>         Assigned To: Antonio Si
>
> If an app invoke hibernate SessionFactory.close() when running ehcache, it 
> will shutdown CacheMaanger. When running in a cluster, since the CacheManager 
> is shared, other node will get an IllegalStateException when trying to access 
> the CacheManager later.

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

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to