|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Pub/Sub Streams question |
« View previous topic :: View next topic » |
Author |
Message
|
trumant |
Posted: Sat Jul 14, 2007 9:17 am Post subject: Pub/Sub Streams question |
|
|
Newbie
Joined: 14 Jul 2007 Posts: 2
|
I've got an application which wants to publish to multiple topics on a non-default stream (i.e. not SYSTEM.BROKER.DEFAULT.STREAM), but rather a stream I'll call A.STREAM.
Using JMS and calling setBrokerPubQueue("A.STREAM"), my publications work fine.
However, when trying to registry durable subscribers on that A.STREAM by calling setBrokerDurSubQueue("A.STREAM"), I get the following exception:
Code: |
com.ibm.mq.jms.BrokerCommandFailedException: Broker command failed: MQRCCF_Q_NAME_ERROR Reason code 3076
at com.ibm.mq.jms.MQBrokerSubscriptionEngine.openDurableSubscription(MQBrokerSubscriptionEngine.java:1297)
at com.ibm.mq.jms.MQMigrateSubscriptionEngine.openDurableSubscription(MQMigrateSubscriptionEngine.java:547)
at com.ibm.mq.jms.MQSession.createDurableSubscriber(MQSession.java:5025) |
If I simply change the subscribers to register on the system queue: SYSTEM.JMS.D.SUBSCRIBER.QUEUE, it works fine, but I can only receive messages published to the SYSTEM.BROKER.DEFAULT.STREAM queue.
Also, if I change the subscribers to register on multiple queues, one per topic, using SYSTEM.JMS.D.MYAPP.*, I can likewise only receive messages published to the SYSTEM.BROKER.DEFAULT.STREAM queue.
My question is, what in the world do I need to do to register a durable subscriber on a non system default stream? I've read through redbooks, searched the forum all to no avail.
Any help you all could provide is much appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jul 14, 2007 10:51 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Read the books again...
You need to make sure the broker publishes from your non standard queue.
As well as for your subscription: If the queue is non standard it still needs to start as SYSTEM.JMS.D. an alias will allow you to transform a non standard name into a standard name....
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
trumant |
Posted: Thu Aug 09, 2007 6:44 pm Post subject: |
|
|
Newbie
Joined: 14 Jul 2007 Posts: 2
|
Turns out the answer was to specify the durPubQueue on the TopicConnectionFactory used on the subscriber side. Setting this to the name of the Stream that the publications were made on worked.
Subscriptions are using setBrokerDurSubQueue=SYSTEM.JMS.D.MYAPP.* |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|