[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JOIN not working..
clebert.suconic@jboss.com
do-not-reply at jboss.com
Wed Mar 11 20:34:57 EDT 2009
The problem I see is here:
| prodA.send(createTextMessage(sessionA, "A"));
| prodB.send(createTextMessage(sessionB, "B"));
|
prodA and prodB will both send Async, in parallel execution, since they use two distinct Sessions.
TransactionImpl is not synchronizing some of its collections, as the whole thing was not really planned for concurrency, what was an exception when playing with Joining as the test was written.... creating some race conditions.
Those tests will aways fail in the first time, and pass at the second time. (probably because of ClassLoading creating more race conditions).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217221#4217221
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217221
More information about the jboss-dev-forums
mailing list