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 Reason 2009

Post new topic  Reply to topic
 MQException Reason 2009 « View previous topic :: View next topic » 
Author Message
zen
PostPosted: Wed May 11, 2005 10:09 pm    Post subject: MQException Reason 2009 Reply with quote

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
View user's profile Send private message
fschofer
PostPosted: Thu May 12, 2005 1:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
zen
PostPosted: Thu May 12, 2005 3:24 am    Post subject: MQException Reason 2009 Reply with quote

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
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 » IBM MQ Java / JMS » MQException Reason 2009
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.