|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQException Reason 2009 |
« View previous topic :: View next topic » |
Author |
Message
|
zen |
Posted: Wed May 11, 2005 10:09 pm Post subject: MQException Reason 2009 |
|
|
Apprentice
Joined: 11 May 2005 Posts: 32 Location: Singapore
|
Hi,
We have an MQ installed in our server. Now, I created a client application to create a connection pool using TCP/IP connection, which resides or runs in my local machine(diff machine from the server). So in my program, I defined the MQEnvironment
MQEnvironment.channel = "ourchannel.com";
MQEnvironment.hostname = "hostserver";
and in my start method, I have the ffg codes:
for (i=0; i<ClientConnectionPoolManager.INITIAL_POOLSIZE; i++) {
System.out.println("Adding pools...");
pool.add (new MQQueueManager (DEFAULT_QUEUE_MANAGER, conman));
}
However, I encountered the ffg error:
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
Do I have to any other attributes of the MQEnvironment?
Any idea, opinion or suggestion would be greatly appreciated. Thanks.
zen |
|
Back to top |
|
 |
fschofer |
Posted: Thu May 12, 2005 1:28 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Hi,
which port is your queue manager listener using ?
=> add:
MQEnvironment.port = "port";
Greetings
Frank |
|
Back to top |
|
 |
zen |
Posted: Thu May 12, 2005 3:24 am Post subject: MQException Reason 2009 |
|
|
Apprentice
Joined: 11 May 2005 Posts: 32 Location: Singapore
|
Hi,
Yeah, I had to set the port and a misspelled channel. Anyways, thanks a lot for your reply. This forum have been very heplful.
Thanks a lot guyz.
Kudos,
zen
 |
|
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
|
|
|
|