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 » General IBM MQ Support » MQ queue manager closed channel immediately during connect

Post new topic  Reply to topic
 MQ queue manager closed channel immediately during connect « View previous topic :: View next topic » 
Author Message
spider
PostPosted: Thu Sep 21, 2006 10:23 am    Post subject: MQ queue manager closed channel immediately during connect Reply with quote

Novice

Joined: 19 Feb 2006
Posts: 23

Hi,

Am trying to put a message in a local queue residing on the local machine, but am getting the error as:

MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009

This is the code snipped(Java):
----------------------------------------
MQEnvironment.properties.put (MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
MQQueueManager qMgr = new MQQueueManager("BRKR.Q.MGR");

int openOptions = MQC.MQOO_OUTPUT;
MQQueue q = qMgr.accessQueue("LQ1", openOptions, null, null, null);

MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = MQC.MQPMO_NONE;

MQMessage tmp = new MQMessage();
tmp.writeUTF("Hello World!");

q.put(tmp, pmo);
q.close();
qMgr.disconnect();
----------------------------------------
Please help!

Thanks in advance...
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 21, 2006 10:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Code:
MQEnvironment.properties.put (MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
spider
PostPosted: Thu Sep 21, 2006 10:30 am    Post subject: Reply with quote

Novice

Joined: 19 Feb 2006
Posts: 23

I've already added this.. Pls chk d code snippet..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 21, 2006 10:38 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

why did you add it?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
spider
PostPosted: Thu Sep 21, 2006 10:40 am    Post subject: Reply with quote

Novice

Joined: 19 Feb 2006
Posts: 23

If thats not added, then it gives the following error...

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find library mqjbnd05 (libmqjbnd05.so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/opt/IBMJava2-142/bin/../jre/bin
java.library.path=/opt/IBMJava2-142/bin/../jre/bin:/opt/IBMJava2-142/jre/bin/classic:/opt/IBMJava2-142/jre/bin:/home/db2inst1/sqllib/lib:/usr/lib
Back to top
View user's profile Send private message
jeevan
PostPosted: Thu Sep 21, 2006 10:44 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

can you please tell us :

which platform?
which version of mq
which CSD?
Back to top
View user's profile Send private message
spider
PostPosted: Thu Sep 21, 2006 10:45 am    Post subject: Reply with quote

Novice

Joined: 19 Feb 2006
Posts: 23

which platform - RedHat Linux
which version of mq - 5.3
which CSD - 10
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 21, 2006 10:51 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can't use CLIENT_TRANSPORT and only supply a queue manager name.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/csqzaw1423.htm

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzaw.doc/csqzaw1417.htm#inslib
(You might have to scroll down to "The WebSphere MQ Java libraries")
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jeevan
PostPosted: Thu Sep 21, 2006 10:51 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Can you issue the following from the client machine

telnet hostname port

see what happens. this tells you whether the qmgr is linsteing a the por.

Also, check the error message at the log file. Are any FDC files are created?
Back to top
View user's profile Send private message
spider
PostPosted: Thu Sep 21, 2006 11:09 am    Post subject: Reply with quote

Novice

Joined: 19 Feb 2006
Posts: 23

Hey.. I got it solved.. Thanks guys..

The problem was for the client type binding, i hadn't specified hostname, port, channel etc..

But in my case a fast binding wud have sufficed, but I cudnt use it as it was giving some runtime error of some missing libraries.

Anyway thanks a lot guys...
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 » General IBM MQ Support » MQ queue manager closed channel immediately during connect
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.