We are having 2 web application using same Database and common Toplink library, but 2 different session objects for both the applications. We are using JMS for cache coordination. JMS propagating messages successfully between the applications and able to see the object changes in both the applications properly. Now, we are trying to refresh cache for manual updates in Database.
We are trying to refresh particular object which is modified in database in one application, it is able to refresh in the application from which refresh happened but not in other application. Is there any way we can force JMS to propagate these changes/updates?
Our intention is refreshing in one application so that JMS should coordinate and update in others when DB manual updates. Please let us know any comments for the same.
I am trying to prepare JMS message but not able to complete, any sample code/ link i can refer to?
Joined: Oct 01, 2007
I would not create your own JMS message, but use the session's commandManager (or cacheSynch) to send the message. You just need to give it the UnitOfWorkChangeSet that you will build with the ObjectChangeSet of your changed object.
I would be much easier if you upgrade to 11g.
Joined: Sep 18, 2012
Thanks James!!! i am able to send message and able to succeed.