I've fixed this. It shouldn't even be doing the removeAllMessages() in this case,
it should be throwing an exception to the application.
The user will now get an javax.jms.IllegalStateException
if they unsubscribe() a Durable TopicSubscription while it is still active.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029392#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...