Posted: Tue Jun 15, 2010 1:07 am Post subject: Clustered jms sub to a topic : 2429 MQRC_SUBSCRIPTION_IN_USE
Novice
Joined: 23 May 2007 Posts: 12 Location: France
Dear all,
Environment : WMQ 7.0.1 on Linux
I would like a clustered java application to durably subscribe to a MQ 7.0 topic via JMS.
To rephrase, I want each pub/sub message to be received exactly once on my cluster. I understand that concurrently listening on the same jms topic subscription will cause the loss of message ordering; it is not a problem for me.
Unfortunately, when I try this, I get a 2429 MQRC_SUBSCRIPTION_IN_USE exception.
Is there a way to create a durable subscription to a topic telling MQ to allow concurrent listeners of this same subscription ?
I saw a workaround :
1. create a topic 'MY_SUBJECT_TOPIC'
2. create a local durable queue 'MY_SUBJECT_QUEUE_TO_MY_APP'
3. create a subscription MY_SUBJECT_SUBSCRIPTION_TO_MY_APP to attach topic 'MY_SUBJECT_TOPIC' to queue MY_SUBJECT_QUEUE_TO_MY_APP'
Thanks to this, all my application cluster nodes can concurrently listen to the same topic subscription but the downside is a more complex MQ configuration.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum