Could you just store the count in an AtomicInteger before commit.
Then, when commit (or rollback) arrives if the count != 0 (in many cases it may already be
zero) either create a CountDownLatch (or use Object.wait/notify) to wait for the remaining
persistences.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148996#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...