ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <larry.mead...@gmail.com>
Subject Re: FIX?: protected static ThreadLocal localSqlMapSession = new ThreadLocal();
Date Fri, 11 Jul 2008 16:02:12 GMT
Make the cache read-only and serializable, and it will be container wide.

Larry

On Fri, Jul 11, 2008 at 9:56 AM, Vic Cekvenich <vic@phonezoo.com> wrote:
> Before:
> protected ThreadLocal localSqlMapSession = new ThreadLocal();
> After:
> protected static ThreadLocal localSqlMapSession = new ThreadLocal();
> in SqlMapClientImpl
>
> Rationale:
> People(me) expect the cache to be "container"(war) wide, and not "session"
> based. Ex: I have user1 pull put client 101,102,103, user2 pulls up 104 and
> 103: 103 should be in cache already, a cache hit. The FIX? should disable
> the cache checking the session as part of the key.
> At least it should be a "property" in "ibatis.xml" to turn on/off and some
> docs.
>
> I did this at a few ibatis deployments....
>
>
> .V
>
>

Mime
View raw message