My setup: JBoss Messaging 1.4 running on JBoss 4.2.3
I have a couple of MDB's that subscribes on one topic, and the MDB's onMessage() tries to deliver the received message to one web service each.
My problem is that I can't figure out how to pause the subscriptions in the case when the web service is offline.
My plan is to do the following in onMessage():
- try to deliver to web service
- if offline:
- --> pause the subscription
- --> throw exception in onMessage() to make JMS redeliver the message until the web service goes online again
- --> start the subscription
I want to pause ONLY the one subscription that have the problem - NOT all my subscribers.
Any suggestion on how to solve this?