|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQJE001: Completion Code 2, Reason 2085 |
« View previous topic :: View next topic » |
Author |
Message
|
rasad74 |
Posted: Tue Oct 30, 2001 2:21 pm Post subject: |
|
|
Novice
Joined: 29 Oct 2001 Posts: 10
|
Hi Fellows,
I have been using MQ JMS classes with JNDI technique. When I test my application I get the following error any clues what I am doing wrong? (I have MA88 support pack and ma0c_win.zip pack for pub/sub function)
MQJE001: Completion Code 2, Reason 2085
Connection problem: javax.jms.JMSException: MQJMS2006: MQ problem: com.ibm
.mq.MQException: MQJE001: Completion Code 2, Reason 2085
Any help is much appreciated.
Thanks,
Rehan |
|
Back to top |
|
 |
StefanSievert |
Posted: Tue Oct 30, 2001 3:16 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
2085 = MQRC_UNKNOWN_OBJECT_NAME
Make sure that the queue name that you are referencing through the JNDI lookup is spelled correctly and that the queue has been defined within your MQ QMgr. Be aware that MQSeries object names are case-sensitive.
HTH,
Stefan |
|
Back to top |
|
 |
rasad74 |
Posted: Wed Oct 31, 2001 7:00 am Post subject: |
|
|
Novice
Joined: 29 Oct 2001 Posts: 10
|
Thanks Stefan for the reply.
But I am only referencing TopicConnectionFacotry and TopicName from JNDI. Do I need to define queues in JNDI too.
Here is code snippet:
topicConnectionFactory =(TopicConnectionFactory) SampleUtilities.jndiLookup(SampleUtilities.TOPICCONFAC);
System.out.println("Now topicConnection factory is: " + topicConnection);
// The above line of code executes
// successfully and does give me
// MQTopicConnectionFactory object from
// JNDI
topicConnection = topicConnectionFactory.createTopicConnection();
// The above line of code never executes
// and the following error occurs:
Now topicConnectionFactory factory is: com.ibm.mq.jms.MQTopicConnectionFac
tory@e3b33cfb
MQJE001: Completion Code 2, Reason 2085
Connection problem: javax.jms.JMSException: MQJMS2006: MQ problem: com.ibm
.mq.MQException: MQJE001: Completion Code 2, Reason 2085
Any pointers?
Thanks,
Rehan
|
|
Back to top |
|
 |
StefanSievert |
Posted: Wed Oct 31, 2001 2:18 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Rehan,
I am not a JMS geek, but what you need to do to publish/subscribe on a topic is
1. Obtain a TopicConnectionFactory
2. Create a TopicConnection and start it
3. Create a TopicSession
4. Obtain a Topic from JNDI
5. Create TopicPublishers and/or
TopicSubscribers
In the directory you have to specify which queue manager to use and which queue you are resolving to. As I am not the right person to give you the exact details on the JNDI configuration/lookup I'd suggest to read the MQSeries using Java book or look at the samples that come with the MQClient installation (if you installed the toolkit).
Hope that gets you on track,
Stefan |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Nov 01, 2001 3:01 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
One of the causes for the 2085 is is not running the MQJMS_PSQ.mqsc file against the queue manager. There is a small section on this in the Using Java manual. Basically, you'll need to:
runmqsc < MQJMS_PSQ.mqsc
to create the system objects. If you haven't done this, give it a try.
This can be found in the Additonal Setup for Publish/Subscribe section of Chapter 4.... |
|
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
|
|
|
|