ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: clustered cache on Tomcat - can't shutdown
Date Wed, 30 Jul 2008 13:03:13 GMT
I'd implement your own cache controller by copying the source for iBATIS'
OSCacheController class.  Then you could expose the
GeneralCacheAdministrator and manipulate it yourself.

Jeff Butler

On Wed, Jul 30, 2008 at 3:36 AM, Darren Davison <darren@davisononline.org>wrote:

> hi,
> does anyone have experience of running a clustered iBATIS cache on
> Tomcat using oscache and jgroups?  It works fine for me, with flush()
> calls being replicated around the cluster, but when any Tomcat instance
> is shutdown, it (Tomcat) just hangs.
>  From searching around, I believe this may be because the oscache's
> GeneralCacheAdministrator instance never has its destroy() method
> called.  It's this method that eventually leads to the listeners being
> finalized.  A proposed solution is to obtain the reference to this
> instance and call destroy in a ServletContextListener.contextDestroyed()
> method.  Problem here of course is that there's no way to obtain the
> reference to it from iBATIS' OSCacheController and the controller never
> calls this method itself.
> Any recommendations on how to approach this?
> Cheers!
> --
> Darren Davison
> Public Key: 0xE855B3EA
> Version: GnuPG v1.4.6 (GNU/Linux)
> vDTC7YAh/O4c4QC3xHU0glE=
> =lc0k

View raw message