users@glassfish.java.net

Re: Glassfish 3.0.1 Lazy Loading not working properly

From: <glassfish_at_javadesktop.org>
Date: Fri, 23 Jul 2010 14:14:52 PDT

Hi,

Yes, this is a caching issue, and the portability problem you have discovered arises because persistence provider implementations use different default caching strategies.

JPA 2.0 provides support to address this at different levels of granularity. Have a look at the persistence.xml shared-cache-mode element, the Cache interface, and the cache retrieve mode and cache store mode properties that can be passed to entity manager and query operations.

-Linda
[Message sent by forum member 'ldemichiel']

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