ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Pub/Sub Streams question

Post new topic  Reply to topic
 Pub/Sub Streams question « View previous topic :: View next topic » 
Author Message
trumant
PostPosted: Sat Jul 14, 2007 9:17 am    Post subject: Pub/Sub Streams question Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Jul 14, 2007 10:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
trumant
PostPosted: Thu Aug 09, 2007 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Pub/Sub Streams question
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.