Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Cache coordination issue - Eclipselink merge command creating uninitialized object on remote servers

Hi Anvay,

I've seen similar problems with the EclipseLink cache, even without cache coordination, where uninitialized entity instances had been cloned from the cache. Might be the same defect.

For cache coordination I suggest to use invalidation over sending the objects. See @Cache( coordinationType=...). That should already solve that problem. There are rare cases where SEND_OBJECT_CHANGES is needed, which unfortunately is the default.

You also might need to use @OptimisticLocking(cascade=true). Otherwise insertion+deletion in lists of the owning entity might not always be recognized on the other nodes.

Best regards
    Michael

--
http://michael.hoennig.de

Back to the top