Hi,
I have some J2EE apps (using of course JBoss/Hibernate) that required the same master data. The data schemes differs and cannot consolidate with low effort. Therefore I want to nominate one application as master and replicate the changes to the other (slave-)apps. I can successfully retrieve the changeset of a transaction using the Hibernate interceptor and I use JMS topics to replicate the changeset to the slaves. So far it seems I have solved the problem. But I think, I may run in trouble with the ordering of changesets when concurrent threads modifies the same tables and data.
My Questions: 1.) Is it guaranteed the method "afterTransactionCompletion" is invoked in the order the transactions are commit in the database? 2.) Do I have to care myself about the ordering inside the method "afterTransactionCompletion", becaue the method is reentrant?
I know the questions may be a little bit sophisticated. Anyway I would be glad on answers or suggestions.
Cheers Dieter.
|