ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From charlie bird <zebthe...@yahoo.co.uk>
Subject Re: Caching objects on a application server
Date Thu, 13 Nov 2008 08:20:54 GMT
I can vouch for EHCache.
Piece of cake to implement and Serialization doesn't appear to be an application killer for
us. 

I've tended to integrate it in the DAOImpl classes but you can integrate at the service layer
if you like.

--- On Thu, 13/11/08, Chema <demablogia@gmail.com> wrote:

> From: Chema <demablogia@gmail.com>
> Subject: Re: Caching objects on a application server
> To: user-java@ibatis.apache.org
> Date: Thursday, 13 November, 2008, 7:46 AM
> Thanks.
> I'll have a look these solutions.
> 
> 
> 2008/11/12 Kai Grabfelder <nospam@kinokai.de>:
> > 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, EHCACHE, or
> > one of the other caching solutions.
> >
> > Regards
> >
> > Kai
> >
> > --- 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.
> >>>
> >>
> >
> >


      

Mime
View raw message