|
|
|
|
|
Re: JMS Cache coordination [message #1061253 is a reply to message #1061244] |
Thu, 30 May 2013 19:01 |
Chris Delahunt Messages: 1389 Registered: July 2009 |
Senior Member |
|
|
I assume then you have debugged and that you are correctly seeing the "*******Successfully message has processed. *********" messages that indicate the command was processed. Does changing the CacheCoordinationType help or change anything? What is the nature of the change you are making, and do any other changes successfully invalidate the remote cache? How are you accessing the entity after the changes are received?
[Updated on: Thu, 30 May 2013 19:02] Report message to a moderator
|
|
|
|
|
|
Re: JMS Cache coordination [message #1061695 is a reply to message #1061686] |
Mon, 03 June 2013 14:06 |
P Soma Messages: 9 Registered: May 2013 |
Junior Member |
|
|
I am executing the following steps to verify cache coordiantion.
Step 1 : Execute the following steps on Server 2:
final NoteBO note = entityManager.find(NoteBO.class, key);
System.out.println("Desciption " + note.getNote());
Step 2 : Execute the following steps on Server1:
final NoteBO note = entityManager.find(NoteBO.class, key);
System.out.println("Old Desciption " + note.getNote());
final Random rand = new Random();
note.setNote("Test (" + rand.nextInt(100) + ") - ");
entityManager.getTransaction().begin();
entityManager.merge(note);
entityManager.getTransaction().commit();
After the enity has committed on server1, eclipselink has sent a JMS message with the changes.
Step 3 : Execute the following steps after JMS message has processed on Server 2:
final NoteBO note = entityManager.find(NoteBO.class, key);
System.out.println("Desciption " + note.getNote());
In Step 3, I can see the same old description value (i.e. same as in Step 1) of Note entity. When I debugged, I found that the following line is always returing null value within MergeManager.mergeChangesFromChangeSet(UnitOfWorkChangeSet) method.
Object object = objectChangeSet.getTargetVersionOfSourceObject(this, this.session, false);
if (object != null) {
mergeChanges(object, objectChangeSet, this.session);
.....
That's why mergeChanges method has never invoked. Is there anything, I am doing wrong?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04257 seconds