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 » JMS pub/sub with multiple queues

Post new topic  Reply to topic
 JMS pub/sub with multiple queues « View previous topic :: View next topic » 
Author Message
pomeroy8
PostPosted: Thu Sep 12, 2002 1:12 pm    Post subject: JMS pub/sub with multiple queues Reply with quote

Novice

Joined: 25 Jun 2001
Posts: 21
Location: Markham, ON Canada

Sorry for long post, hope all relevant information is provided. I can post the code if required.

I have MQ v5.2, MA88, and MA0C all running and configured on my W2K box. I am developing, sample, JMS code using WSAD. I started with Willy Farrell's excellent tutorials from developerworks.

I have successfully created P2P and pub/sub applications. I have created multiple durable subscriptions by setting the clientID as part of the createDurableSubscriber call. All subscription messages going to a single queue. The code was working prior to me attempting multiple queues for durable subscriptions. I think that eliminates installation and configuration problems (eg: classpath, ...).

I am now trying to setup multiple queues, as per Using Java manual, page 197-198. I used the JMSAdmin tool to set the BROKERDURSUBQ as follows:

---
Code:

InitCtx/mq> dis ctx

  Contents of InitCtx/mq

   a  Poetry                    com.ibm.mq.jms.MQTopic
   a  Linux                     com.ibm.mq.jms.MQTopic
   a  MyQCF                     com.ibm.mq.jms.MQQueueConnectionFactory
   a  AllBooks                  com.ibm.mq.jms.MQTopic
   a  Java                      com.ibm.mq.jms.MQTopic
   a  MyQueue                   com.ibm.mq.jms.MQQueue
   a  Cyberpunk                 com.ibm.mq.jms.MQTopic
   a  AllComputers              com.ibm.mq.jms.MQTopic
   a  MyTCF                     com.ibm.mq.jms.MQTopicConnectionFactory
   a  AllTopics                 com.ibm.mq.jms.MQTopic

  10 Object(s)
    0 Context(s)
    10 Binding(s), 10 Administered


InitCtx/mq> alter t(Linux) BDSUB(SYSTEM.JMS.D.SUBSCRIBER.LINUX.*)

InitCtx/mq> dis t(Linux)

    BROKERDURSUBQ(SYSTEM.JMS.D.SUBSCRIBER.LINUX.*)
    BROKERVER(V1)
    PERSISTENCE(APP)
    CCSID(1208)
    TARGCLIENT(JMS)
    ENCODING(NATIVE)
    BROKERCCDURSUBQ(SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE)
    PRIORITY(APP)
    EXPIRY(APP)
    VERSION(1)

---

The code did work prior to me changing the JNDI objects. Running my applicaiton I get the following error:

Code:
javax.jms.JMSException: MQJMS1031: an internal error has occurred. Please contact your system administrator.
   at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:530)
   at com.ibm.mq.jms.MQMigrateSubscriptionEngine.openDurableSubscription(MQMigrateSubscriptionEngine.java:815)
   at com.ibm.mq.jms.MQTopicSession.createDurableSubscriber(MQTopicSession.java:755)
   at com.ibm.mq.jms.MQTopicSession.createDurableSubscriber(MQTopicSession.java:594)
   at Pub_Sub.DurSubJMSTextMessage.subscribe(DurSubJMSTextMessage.java:93)
   at Pub_Sub.DurSubJMSTextMessage.main(DurSubJMSTextMessage.java:14)


I was expecting to "see" a new queue in the MQExplorer SYSTEM.JMS.D.SUBSCRIBER.LINUX....

Any suggestions.

Thanks in advance
Back to top
View user's profile Send private message
pomeroy8
PostPosted: Fri Sep 13, 2002 8:33 am    Post subject: Reply with quote

Novice

Joined: 25 Jun 2001
Posts: 21
Location: Markham, ON Canada

Restarting WSAD test server solved problem ... go figure. thx
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 » JMS pub/sub with multiple queues
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.