ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sundar Sankar <fatboys...@gmail.com>
Subject Re: Force cache refresh + precaching
Date Wed, 15 Jul 2009 20:34:34 GMT
I havent implemented this particular case, but I wud have to suggest you go
with other technologies in conjunction, maybe comet or something like that.
Am not sure if hibernate / hibernate cache handles this case but i wud look
to check up with their dev team too.

On Wed, Jul 15, 2009 at 1:25 PM, Vinaya Tirikkovalluru <
vinaya.tirikkovalluru@converge.com> wrote:

>  Is there a specific reason why do you want to do that?
>
> Because, the first time you access the object, it will be created and
> stored in cache
>
>
>
>
>
>
>  ------------------------------
>
> *From:* Anindya Mukherjee [mailto:anindya.mukherjee@gmail.com]
> *Sent:* Wednesday, July 15, 2009 3:28 PM
> *To:* user-java@ibatis.apache.org
> *Subject:* RE: Force cache refresh + precaching
>
>
>
> Hi Vinaya,
>
>
>
> Thanks a lot for the help. I actually meant during app load ( when our
> application is booting ).
>
>
>
> -          Anindya
>
>
>
> *From:* Vinaya Tirikkovalluru [mailto:vinaya.tirikkovalluru@converge.com]
> *Sent:* July-16-09 12:41 AM
> *To:* user-java@ibatis.apache.org
> *Subject:* RE: Force cache refresh + precaching
>
>
>
> Hi,
>
>
>
> What do you mean by before app load?
>
>
>
> To forcefully refresh the cache, you can use
>
>
>
> getSqlMapClient().flushDataCache("sqlmap.queryname");
>
>
>
> Vinaya
>
>
>  ------------------------------
>
> *From:* Anindya Mukherjee [mailto:anindya.mukherjee@gmail.com]
> *Sent:* Wednesday, July 15, 2009 3:06 PM
> *To:* user-java@ibatis.apache.org
> *Cc:* anindya.mukherjee@gmail.com
> *Subject:* Force cache refresh + precaching
>
>
>
> Hi ,
>
>
>
> We have started using iBatis caches. To start with we are using an LRU
> cache. However we have an issue ,  the underlying tables in our db can be
> updated by manual inserts ( it is a shared db used by a number of apps ).
>
>
>
> Now we need a mechanism whereby we can forcefully refresh the iBatis cache.
> Can anybody help us with this ? Also the ibatis caches are lazy loading ( it
> loads on demand ) , is it possible to somehow precache some data during app
> load.
>
>
>
> -          Thanks,
>
> -          Anindya
>  ------------------------------
>
> This electronic message is intended only for the use of the individual(s)
> or entity(ies) named above and may contain information which is privileged
> and/or confidential. If you are not the intended recipient, be aware that
> any disclosure, copying, distribution, dissemination or use of the contents
> of this message is prohibited. If you received this message in error, please
> notify the sender immediately.
>
> ------------------------------
> This electronic message is intended only for the use of the individual(s)
> or entity(ies) named above and may contain information which is privileged
> and/or confidential. If you are not the intended recipient, be aware that
> any disclosure, copying, distribution, dissemination or use of the contents
> of this message is prohibited. If you received this message in error, please
> notify the sender immediately.
>



-- 
Regards
Sundar S.

Mime
View raw message