ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Grabfelder <nos...@kinokai.de>
Subject Re: Caching objects on a application server
Date Wed, 12 Nov 2008 22:41:35 GMT
Are you sure that you want to do this using iBATIS? I think you should use the iBATIS cache
if you want to be
able to purge the cache depending on certain inserts. In you case I would do the caching 
one layer above,
e.g. withing the (possible spring) service layer using some caching framework like JBoss Cache,
one of the other caching solutions.



--- Original Nachricht ---
Absender: Chema
Datum: 12.11.2008 08:58
> Ok, thanks.
> But I don't need a different object per session because are read-only objects.
> And I don't know if serialization could affect to performance.
> By now,  I'll use a static hashmap
> 2008/11/11 Larry Meadors <larry.meadors@gmail.com>:
>> If you make your cache serializable it can be shared across sessions.
>> On Tue, Nov 11, 2008 at 1:29 AM, Chema <demablogia@gmail.com> wrote:
>>> I'd like to know who can to read all these cached objects.
>>> Reading docs,  looks like "read only caches" only can seen by one session.
>>> If I understood what is a session on iBatis, just one thread could see
>>> cached objects at a time.

View raw message