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 » MQJE001: Completion Code 2, Reason 2085

Post new topic  Reply to topic
 MQJE001: Completion Code 2, Reason 2085 « View previous topic :: View next topic » 
Author Message
rasad74
PostPosted: Tue Oct 30, 2001 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
StefanSievert
PostPosted: Tue Oct 30, 2001 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
rasad74
PostPosted: Wed Oct 31, 2001 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
StefanSievert
PostPosted: Wed Oct 31, 2001 2:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Nov 01, 2001 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQJE001: Completion Code 2, Reason 2085
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.