|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error while creating durable subscriber |
« View previous topic :: View next topic » |
Author |
Message
|
ravishanker |
Posted: Tue Jun 04, 2002 1:43 am Post subject: Error while creating durable subscriber |
|
|
Newbie
Joined: 28 May 2002 Posts: 5 Location: Hyderabad, India
|
Hi;
I am creating a durable subscriber but am getting the following error
javax.jms.JMSException: MQJMS3024: Illegal use of uninitialised client ID
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
ent.java:530)
at com.ibm.mq.jms.MQQueueSubscriptionEngine.openDurableSubscription(MQQu
eueSubscriptionEngine.java:465)
at com.ibm.mq.jms.MQMigrateSubscriptionEngine.openDurableSubscription(MQ
MigrateSubscriptionEngine.java:375)
at com.ibm.mq.jms.MQTopicSession.createDurableSubscriber(MQTopicSession.
java:754)
at SelectorChat.chatter(SelectorChat.java:60)
at SelectorChat.main(SelectorChat.java:148)
My program is as follows
factory = (TopicConnectionFactory)ctx.lookup(tcflookup);
connect = factory.createTopicConnection();
connect.setClientID("ravi");
session = connect.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
Topic pubtopic = session.createTopic ("ravis");
sub = session.createDurableSubscriber(pubtopic, "YourDurableName",null,true);
Kindly help
Regards _________________ Ravi Shanker |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Jun 04, 2002 11:16 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
MQJMS3024 happens when there is no ClientID associated with a durable subscription. The ClientID can be set in one of two ways:
1. As a property of the tcf via jmsadmin (eg, alter tcf(myTCF) clientid(myID))
2. Programmatically using TopicConnection.setClientID() |
|
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
|
|
|
|