users@glassfish.java.net

Re: Is Toplinks second level cache cluster aware?

From: <glassfish_at_javadesktop.org>
Date: Thu, 27 Sep 2007 02:13:15 PDT

Hi tware,

I have an application that runs in a none cluster environment and i would like to deploy it in a cluster environment. This application is not cluster aware because it doesn't use locking mecanism or refresh options set at toplink level.

The entities managed are generally accessed for read purposes but some times an entity could be updated. That i want, like Whartung, is that the instance that has not made the modification refresh or remove this entity from the cache.

The idea that i have is to desactivate the 2nd level cache of toplink in order to force the refresh of the objects each time a transaction access it the this time.
Is it possible ? what is the best way tot do that?

The second idea is to desactivate the cache only for a set of specific entities that are subject to change.
Is it possible to desactivate the cache only for specific entities ? how to do that?

Thanks for your help.
Franck.
[Message sent by forum member 'franck_mosse' (franck_mosse)]

http://forums.java.net/jive/thread.jspa?messageID=237346