I've removed these kind of sleeps
| // wiat a little bit to give time for the message to be handled by the server
| Thread.sleep(timeToSleep);
|
Since it's non deterministic and sometimes the tests would fail.
A much simpler way to ensure the message gets to the server is just to set blocking sends
to true on the connection factory.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197807#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...