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.
Bulk closing stale resolved issues