Posted: Tue Mar 20, 2007 10:45 pm Post subject: IBM Message Broker PUB/SUB Application Exception
Newbie
Joined: 20 Mar 2007 Posts: 2 Location: Hyderabad
Hi all
I am trying to subscribe a topic on Messge Broker v 6.0 for that i have written one stand alone application using JMS API(com.ibm.mqjms.jar) and there i am getting one exception.
Can any help me solving this problem.
Exception in thread "main" javax.jms.JMSException: MQJMS1111: JMS1.1 The required Queues/Publish Subscribe services are not set up {0}
at com.ibm.mq.jms.MQConnection.setSubscriptionStores(MQConnection.java:3755)
at com.ibm.mq.jms.MQConnection.getMQPubSubServices(MQConnection.java:3686)
at com.ibm.mq.jms.MQSession.addPubSubServices(MQSession.java:6609)
at com.ibm.mq.jms.MQSession.createTopic(MQSession.java:4688)
at com.ibm.mq.jms.MQTopicSession.createTopic(MQTopicSession.java:623)
at com.ca.pubsub.TEST.main(TEST.java:33)
By looking at the exception Trace i am sure that some thing should be enable on the broker or QM to enable this application to subscribe the topic
. If anyone know about that please tell me.
Rajesh kumar
public static void main(String[] args) throws JMSException
{
MQTopicConnectionFactory factory = new MQTopicConnectionFactory();
factory.setBrokerControlQueue("SYSTEM.BROKER.CONTROL.QUEUE");
factory.setBrokerQueueManager("WBRK6_DEFAULT_QUEUE_MANAGER");
factory.setBrokerSubQueue("TEST");
factory.setHostName("yadra04-2k3.ca.com");
factory.setPort(2414);
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); // after using this type of connection i got TopicConnection
TopicConnection topicConnection = factory.createTopicConnection();
topicConnection.start();
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