[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Does Cachemanager shutsdown when the spring context get's destroyed  XML
Forum Index -> Ehcache
Author Message
satya087

journeyman

Joined: 10/14/2010 05:58:35
Messages: 16
Offline

Hi,
if using spring,after we define cache manager in ApplicationContext, does it shutsdown when the spring context get's destroyed, how to check that wether it does or not, please provide a suggestion

-----------------------------------------------------------------------------

<ehcache:annotation-driven cache-manager="ehCacheManager" />

<bean id="ehCacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation">
<value>/WEB-INF/ehcache.xml</value>
</property>

</bean>

--------------------------------------------------------------------------------
teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1128
Offline

Looking at the spring code I would guess that the cache manger would be shutdown.

https://fisheye.springsource.org/browse/spring-maintenance/tags/release-2-5-6/src/org/springframework/cache/ehcache/EhCacheManagerFactoryBean.java?r=17085

That said I haven't personally verified it. It shouldn't be too hard to stop your program in the debugger either in this class or in CacheManager.shutdown() to verify.

Tim Eck (terracotta engineer)
rajoshi

seraphim

Joined: 07/04/2011 04:36:10
Messages: 1491
Offline

Issue seems to be resolved.Please let us know if more information is required.

Rakesh Joshi
Senior Consultant
Terracotta.
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team