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 » javax.jms.JMSException: MQJMS2005: failed to create MQQueueM

Post new topic  Reply to topic
 javax.jms.JMSException: MQJMS2005: failed to create MQQueueM « View previous topic :: View next topic » 
Author Message
dinesh_s
PostPosted: Wed Nov 09, 2005 3:00 am    Post subject: javax.jms.JMSException: MQJMS2005: failed to create MQQueueM Reply with quote

Newbie

Joined: 09 Nov 2005
Posts: 3

I have a queue manager/ set of queues and a lDAP directory server on Machine A. I have bound the queue Manager/queues to LDAP using JMSAdmin.
I have a client program on Machine B which makes jndi lookup on Dir server on Machine B and tries to get queue connection and send a message.
But im getting the following exception..
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for ''
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:434)
at com.ibm.mq.jms.MQQueueConnection.createQM(MQQueueConnection.java:479)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:183)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:6
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection

Im stuck here.... If anybody can assist me on this..
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Nov 09, 2005 3:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

You should try searcing for your error message using the search button above, also see:

http://www.mqseries.net/phpBB2/viewtopic.php?t=22066&highlight=mqjms2005
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
dinesh_s
PostPosted: Wed Nov 09, 2005 4:25 am    Post subject: Reply with quote

Newbie

Joined: 09 Nov 2005
Posts: 3

Im trying to use the vendor-neutral connection method by binding the QueueManager and Queues on remote host to LDAP and then accessing it using JMS Client program on a different host. This is the code i have.

String factoryName = "cn=QueueManager";
String txQueueName = "cn=ErrorQueue";

try {

QueueConnectionFactory queueConnectionFactory =
(QueueConnectionFactory) getLdapContext().lookup(factoryName);

myQueueConnection = queueConnectionFactory.createQueueConnection();

myQueueSession =
myQueueConnection.createQueueSession(
false,
Session.CLIENT_ACKNOWLEDGE);



Queue txQueue = (Queue) getLdapContext().lookup(txQueueName);

myQueueSender = myQueueSession.createSender(txQueue);

myQueueConnection.start();

TextMessage messageToSend = myQueueSession.createTextMessage();
messageToSend.setText(text);
myQueueSender.send(messageToSend);
this.disconnectFromMessageQueues();
System.out.println("Message sent");
Properties p = (Properties) getProperty();
} catch (Throwable e) {
e.printStackTrace();
}
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 09, 2005 6:58 am    Post subject: Reply with quote

Jedi Knight

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

My guess is that you didn't specify a qmgr name in your JNDI QCF. If you didn't and are using a default queue manager, then my next guess is that you don't have your listener running or your QCF isn't setup to act as a WMQ client.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dinesh_s
PostPosted: Wed Nov 09, 2005 11:06 pm    Post subject: Reply with quote

Newbie

Joined: 09 Nov 2005
Posts: 3

ThanX a lot.. I resolved the issue.

I missed out the "client access server connection channel definition" in my JMSAdmin service definition file.

Cheers Dinesh
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 » javax.jms.JMSException: MQJMS2005: failed to create MQQueueM
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.