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 » When iam connection to MQ Series facing problem

Post new topic  Reply to topic
 When iam connection to MQ Series facing problem « View previous topic :: View next topic » 
Author Message
afroz_online777
PostPosted: Sun May 20, 2007 9:36 pm    Post subject: When iam connection to MQ Series facing problem Reply with quote

Novice

Joined: 07 May 2007
Posts: 21

hi ,

Iam using java to connect MQ Series by using client connection mode

and while i trying to connect to the MQseries iam getting the error

MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE011: Socket connection attempt refused
MQJE001: Completion Code 2, Reason 2059
Caught exception: MQJE001: Completion Code 2, Reason 2059

my code is


com.ibm.mq.MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY,MQC.TRANSPORT_MQSERIES);//Connection
qMgr = new com.ibm.mq.MQQueueManager(QueueManager);
System.out.println("Connected");

int openOptions = MQC.MQOO_OUTPUT +QC.MQOO_FAIL_IF_QUIESCING;
MQQueue myQueue = qMgr.accessQueue(RemoteQueue, openOptions,null,null,null);


please suggest the solution for this problem.......


Thanks & Regards
afroz
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
marcin.kasinski
PostPosted: Sun May 20, 2007 10:24 pm    Post subject: Re: When iam connection to MQ Series facing problem Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Hi, Do you know what this error means ?

mqrc 2059

2059 0x0000080b MQRC_Q_MGR_NOT_AVAILABLE


Did you set correct connecting information in your code (QMGR name, listener port) ?

Is qmgr running ?
Is istener running ?

You can also search this forum.
I saw similar problems here.

Check it.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » When iam connection to MQ Series facing problem
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.