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 » Error in executing createQueueConnection method

Post new topic  Reply to topic
 Error in executing createQueueConnection method « View previous topic :: View next topic » 
Author Message
vinay11
PostPosted: Thu Apr 01, 2004 11:16 am    Post subject: Error in executing createQueueConnection method Reply with quote

Newbie

Joined: 01 Apr 2004
Posts: 2

Hi guys, I have made a JMS program to send and receive messages to/from queue.When it executes createQueueConnection method then it raises Exception saying failed to create Queue manager.I have created queue manager and queues on my m/c before executing program and I am using following code where name variable contains queue manager which I have created on my m/c and host contains IP address of my m/c and JAVA.CHANNEl is server channel on my m/c.

MQQueueConnectionFactory qcf =
new com.ibm.mq.jms.MQQueueConnectionFactory();
qcf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
qcf.setQueueManager(name);
qcf.setHostName(host);
qcf.setPort(1414);
qcf.setUseConnectionPooling(true);
qcf.setChannel("JAVA.CHANNEL");



QueueConnection conn = qcf.createQueueConnection(); //gives exception in this line
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Apr 01, 2004 11:42 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Catch the linked exception:

Code:

     } catch( JMSException je ) {
         System.out.println("JMS Exception: " + je);
         // check for a linked exception
         Exception le = je.getLinkedException();
         if (le != null) {
            System.out.println("Linked exception: " + le);
     }


This will give the underlying error. Also, since you are client connecting, do you have your listener running?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
vinay11
PostPosted: Thu Apr 01, 2004 11:48 am    Post subject: Reply with quote

Newbie

Joined: 01 Apr 2004
Posts: 2

ya,listener was not running previously.Its working now.Thanks.
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 » Error in executing createQueueConnection method
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.