-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Concurrency & ordering guarantees on using the interceptor
PostPosted: Thu Oct 29, 2009 6:19 am 
Newbie

Joined: Thu Oct 29, 2009 5:36 am
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.