|
Re: Eclipselink not picking up database changes on refresh [message #384234 is a reply to message #384232] |
Mon, 08 December 2008 14:11 |
|
How are you refreshing the object? Are you using EntityManager.refresh()?
EclipseLink caches by default. To disable the shared cache use the
persistence.xml property,
"eclipselink.cache.shared.default"="false"
Although disabling the shared cache is not normally the best idea. You
can refresh an object using EntityManager.refresh() or the Query hint
"eclipselink.refresh"="true". EclipseLink also has cache invalidation,
several different caching types, clustered cache coordination, and other
options.
Are you using the same EntityManager? An EntityManager normally
represents a transaction context, and will cache all objects locally read
through it. You should normal get a new EntityManager per transaction or
per request.
---
James
http://www.nabble.com/EclipseLink---Users-f26658.html
James : Wiki : Book : Blog : Twitter
|
|
|
Powered by
FUDForum. Page generated in 0.02815 seconds