Best place to shutdown Ehcache [message #507504] |
Wed, 13 January 2010 17:09 |
|
Hi all,
Our 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.
Any advice would be greatly appreciated.
Regards,
Setya
|
|
|
|
Re: Best place to shutdown Ehcache [message #507609 is a reply to message #507510] |
Thu, 14 January 2010 03:50 |
|
Hi,
> What keeps you from using the recommended way?
> If you are running on plain OSGi (without a servlet engine), you could
> use the Activators stop() method.
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.
Regards,
Setya
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04325 seconds