Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Cache L2 sharing objects with managed entities(Cache L2 sharing objects with managed entities)
Cache L2 sharing objects with managed entities [message #1793834] Thu, 16 August 2018 12:52 Go to next message
Eclipse UserFriend
Hello guys,

Having the following structure:

Entity A -> includes an embedded component Address
L2 cache enabled, FULL type, the default one from EclipseLink

During a transaction, before commit time, if we modify the embedded component from a managed entity A, it is instantly reflected in the L2 cache.

We observed that behavior when debugging the L2 cache, more precise using the CacheImpl class (get object method). We observed that the managed entity object shares the same instance of embedded Address with the entity A object resulted from cache.

My question is, did someone else ever experienced this behavior? Does anyone have a solution for this?
Re: Cache L2 sharing objects with managed entities [message #1795876 is a reply to message #1793834] Mon, 01 October 2018 11:25 Go to previous message
Eclipse UserFriend
Yes, it can be done if you have configured various optimizations, such as for reads to use objects directly from the shared cache. These optimizations are not meant for objects you are intending to change.

If this is not how you have hit the situation, more context on your setup would be needed.

Best Regards,
Chris
Previous Topic:UnitOfWork parent(ClientSession) turns inActive
Next Topic:Immutable and read-only mappings
Goto Forum:
  


Current Time: Sat May 10 22:20:42 EDT 2025

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

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

Back to the top