Where's the best place to put code that shutdowns Ehcache CacheManager ? [message #508813] |
Wed, 20 January 2010 07:50  |
Eclipse User |
|
|
|
Hi all,
Our RAP application uses Ehcache caching library which needs to be
shutdown when application exits. The recommended way to shutdown for web
app is by registering ShutdownListener in web.xml.
I was considering the SessionStoreListener, but since Ehcache scope is
supposed to be application wide, I don't think it's the appropriate
place to shutdown when a session is about to be destroyed.
I've tried the Activator#stop(), when I stop the bundle individually
from OSGI console (stop <bundleid> command) it's got called, but if I
shutdown OSGI itself (exit command) it's not.
Any advice would be greatly appreciated.
Regards,
Setya
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08450 seconds