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

Post new topic  Reply to topic
 MQException: MQJE001: Completion Code 2, Reason 2085 « View previous topic :: View next topic » 
Author Message
rasad74
PostPosted: Thu Nov 01, 2001 9:14 am    Post subject: Reply with quote

Novice

Joined: 29 Oct 2001
Posts: 10

Hi Folks,

Let me be much more explanatory this time.

I have a Simple MQJMS Pub/Sub program that uses JNDI lookup for Administered Objects (i.e; TopicConnectionFactory and Topic). I am using WebSphere 3.5 as a JNDI provider and MQSeries version is 5.1 on NT4.0. Now I have been reading IBM Manual "MQSeries using Java" given at http://www-4.ibm.com/software/ts/mqseries/library/manualsa/csqzaw04/csqzaw.htm#ToC

According to the manual I have to use a Tool
called JMSAdmin (it comes with MQSeries) to create administered Objects in JNDI. I followed the instrustions and successfully created the TopicConnectionFactory and Topic objects in JNDI. Now inorder to pub/sub on a topic you have to do following things in your code:
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

I can successfully Obtain a TopicConnection Factory (step 1) but not able to create a Topic connection (step 2) from the TopicConnectionFactory instance. It results in an error:

MQJE001: Completion Code 2, Reason 2085
Connection problem: javax.jms.JMSException: MQJMS2006: MQ problem: com.ibm
.mq.MQException: MQJE001: Completion Code 2, Reason 2085

I have been digging around but still not able to figure out what other setup I have to do to make my program running. It is very simple application and I found similar applications on the web but don't see any difference in the code. I am 100% sure that there is something that needs to be done on MQSeries side. So Just wondering if anyone knows what step I am missing as described above. I would be more than happy to share my program if anyone is interested. Any Help will be much appreciated.

Thanks,
Rehan

Back to top
View user's profile Send private message Send e-mail MSN Messenger
StefanSievert
PostPosted: Thu Nov 01, 2001 10:24 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Rehan,
I will repeat myself but while using JMSAdmin to define the administered objects, you most definitely had to specify a Queue manager and a queue name to resolve to.
This queue name has to be defined in the MQSeries queue manager. Now, a return code of 2085, means that you have successfully (under the covers) connected to the queue manager, but the queue name could not be found. You have therefore either
1) not defined the queue in MQSeries or
2) misspelled the queue name (upper/lowercase?) during your JMSAdmin work.
That's the hottest tip I can give you. The reason code is pretty unambiguous.
Good luck!
Stefan
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Nov 01, 2001 2:51 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....

[ This Message was edited by: bower5932 on 2001-11-01 14:53 ]
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
rasad74
PostPosted: Thu Nov 01, 2001 3:25 pm    Post subject: Reply with quote

Novice

Joined: 29 Oct 2001
Posts: 10

Thanks for all responses.

Seemed like I was not setting the properties for the JNDI administered object, assuming that it will use the defaluts from MQSeries. Now it is clear that if the client connection is used then you have to set the properties like CHAN, HOST, QMANAGER etc, for the administered objects yourself. But if you use use MQSeries Binding mode then you do all that in your code.

Now after setting all the properties I get a different error:

MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: Completion Code 2, Reason 2009
Connection problem: javax.jms.JMSException: MQJMS2005: failed to create MQ
QueueManager for 'localhost:MY_Q_MANAGER'

Anyone seen that before. Thanks for any pointers.

Rehan
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shilpa
PostPosted: Tue Nov 06, 2001 7:32 am    Post subject: Reply with quote

Newbie

Joined: 05 Nov 2001
Posts: 2

Rehan ,
I m facing the same error , found any solution ??

Error is - MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: Completion Code 2, Reason 2009
Back to top
View user's profile Send private message
Shilpa
PostPosted: Wed Nov 07, 2001 11:07 pm    Post subject: Reply with quote

Newbie

Joined: 05 Nov 2001
Posts: 2

Rehan ,
I have finally solved the problem with the error "MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: Completion Code 2, Reason 2009 "

This error means either port , hostname,channel or QManager name is not correct in the code.

Also in the code where it puts the message into the Queue :-
1) All these parameters need to be of your PC .
2) Also in case of transfering msg to remote queue , define a sender channel with proper connection name , but in the code use a server connection channel to put the msg on Remote queue
Mqseries automatically knows to put the msg thru sender channel to remote queue ...

Hope it helps !!!

_________________
Shilps...

[ This Message was edited by: Shilpa on 2001-11-07 23:09 ]
Back to top
View user's profile Send private message
rasad74
PostPosted: Tue Nov 13, 2001 9:55 am    Post subject: Reply with quote

Novice

Joined: 29 Oct 2001
Posts: 10

Thanks Shilpa.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQException: 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.