ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Begin" <clinton.be...@gmail.com>
Subject Re: clustered cache on Tomcat - can't shutdown
Date Wed, 30 Jul 2008 16:47:59 GMT
It's so easy to write a custom cache, just copy the OSCache implementation
and modify it however you like.  You can plug it in by using the fully
qualified class name in place of "OSCACHE" or by creating your own type
alias (e.g. "MYOSCACHE") and using that.

Clinton

On Wed, Jul 30, 2008 at 10:38 AM, Jeff Butler <jeffgbutler@gmail.com> wrote:

> Yep - not too elegant.  iBATIS doesn't have any kind of shutdown
> processing, so there is no hook to call.
>
> I suggested copy/paste because the GeneralCacheAdministrator instance
> variable in the OSCacheController is private.  Otherwise you could just
> subclass.   But I don't think it's a big risk - it's a short class and
> hasn't changed much.
>
> Jeff Butler
>
> On Wed, Jul 30, 2008 at 8:30 AM, Darren Davison <darren@davisononline.org>wrote:
>
>> On Wed, Jul 30, 2008 at 08:03:13AM -0500, Jeff Butler wrote:
>> >    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.
>>
>> Thanks Jeff, though this is what I was trying to avoid if poss.  Thought
>> there might have been an iBATIS hook that I missed.  Copy/Paste is not
>> the most elegant way to extend :)
>>
>> No real biggie I guess.
>>
>> Cheers,
>>
>> --
>> Darren Davison
>> Public Key: 0xE855B3EA
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.6 (GNU/Linux)
>>
>> iD8DBQFIkGzvVgOfSOhVs+oRArr1AKCtefveQBgFqGJiXX8a44EUjmgN8gCdGx2r
>> aJCfw3Psg68oXmlVeWSiGMU=
>> =SynT
>> -----END PGP SIGNATURE-----
>>
>>
>

Mime
View raw message