There's a third problem with your code:
You start the subscriber thread, then immediately start the publisher thread(s) before
waiting for the subcriber thread to finish.
This means there's a strong possibility you'll start sending messages before the
durable subscription is created, so messages will be "lost".
Much as I would like to debug your code all day, I have to get back to work now ;)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168656#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...