users@glassfish.java.net

Re: Is Toplinks second level cache cluster aware?

From: <glassfish_at_javadesktop.org>
Date: Thu, 27 Sep 2007 07:16:13 PDT

Before I tell you how to turn off the second level cache, a note of caution.

If you write an application that does not use any kind of locking scheme and are potentially using update statements (regardless of a 2nd level cache) you will potentially do unsafe updates. When you do a read, it is possible that the instant after that read occurs, an update occurs. Therefore, while you are doing the processing to change the object you read in, the object could already be stale - even with no cache at all.

The following page lists a bunch of configuration options for the cache:

http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html#TopLinkCaching
[Message sent by forum member 'tware' (tware)]

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