Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » No Cache Synchronization after em.clear?
No Cache Synchronization after em.clear? [message #642535] Wed, 01 December 2010 17:34 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: May 2010
Junior Member
Is it intended in eclipselink that after you execute an em.flush() and afterwards an em.clear() in a transaction no more cache synchronization can happen? We've run into this issue and analyzed for several hours why no synchronization messages are generated.

Can anybody maybe shed some light on this?
Re: No Cache Synchronization after em.clear? [message #642803 is a reply to message #642535] Thu, 02 December 2010 18:19 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

This is controlled by the "eclipselink.flush-clear.cache" persistence unit property. The modes are defined in FlushClearCache, the default is DropInvalidate which will not maintain change sets across a clear. You can set it to Merge to keep the change sets.

The reason is that clear is normally used after a flush to process large transactions, where keeping the change sets until the commit would not be feasible, so they are dropped by default.

Technically we should invalidate the entire remote cache with DropInvalidate with cache coordination. You can log a bug for that.


James : Wiki : Book : Blog : Twitter
Previous Topic:Shared Cache not working when using eclipselink with Spring
Next Topic:Subqueries using ExpressionBuilder
Goto Forum:
  


Current Time: Fri Mar 29 12:23:00 GMT 2024

Powered by FUDForum. Page generated in 0.02429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top