|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PCF to remote Q.Manager through Binding Mode |
« View previous topic :: View next topic » |
Author |
Message
|
Gogol |
Posted: Thu Aug 09, 2012 1:39 pm Post subject: PCF to remote Q.Manager through Binding Mode |
|
|
Newbie
Joined: 16 Jul 2012 Posts: 8
|
Hello Everyone,
I am new to this community and has started to work on WMQ.
I am trying to send PCF Command to a Remote Queue Manager through a Local Queue Manager Using Java in Binding Mode.
I am creating a PCF Agent using the Constructor PCFAgent(String QM)
Code: |
PCFAgent agent007 = new PCFAgent("QM.Local");
agent007.connect("QM.Local","QUEUE.PCF.REMOTE","QM.Local");
|
I am trying to send a PCF Command to a Remote Queue which is actually a stub of a SYSTEM.ADMIN.COMMAND.QUEUE on a Remote Queue Manager.
Within my code I used the methods getReplyQueueName() and getModelQueueName() and they show AMQ.******** and SYSTEM.DEFAULT.MODEL.QUEUE respectively, where *s are some random charcacters as the Model Queue Created changes its name everytime, which is used to get the response back. Everything works fine but somehow I get a MQException 2033 CC=2, and my connect() methods fails. It does not reach upto the send() part to send the PCF Message.
Strangely I see
com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2033'.
at com.ibm.mq.MQDestination.getInt(MQDestination.java:655)
at com.ibm.mq.MQDestination.get(MQDestination.java:459)
at com.ibm.mq.pcf.PCFAgent.getBasicQmgrInfo(PCFAgent.java:393)
But According to IBM, the MQDestination.get(MQMessage msg, GetMessageOption gmo) method says
Retrieves a message from the queue or topic. This method takes an MQMessage object as a parameter. It uses some of the fields in the object as input parameters, in particular the messageId and correlationId, so it is important to ensure that these are set as required. If the get fails, the MQMessage object is unchanged. If it succeeds, the message descriptor (member variables) and message data portions of the MQMessage are completely replaced with the message descriptor and message data from the incoming message.
Thus I am wondering as why this getBasicQmgrInfo is checking the Model Queue for messages as my program has not yet sent a PCF Message(actually it did not even reach this stage).
Also Channels are running between the QManagers(Local and Remote), XMITQs are defined.
Any explanations as why my agent007 is not as smart as it is supposed to be ?  |
|
Back to top |
|
 |
sebastia |
Posted: Fri Feb 07, 2014 3:43 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Code: |
c:\> mqrc 2033
2033 0x000007f1 MQRC_NO_MSG_AVAILABLE |
Why are you receiving in a Connect() ? |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Feb 07, 2014 6:05 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Perhaps because your connect method is having the wrong information...
Check out the connect method. I believe one of those values should be the REMOTE qmgr. You have both as being the local qmgr...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Feb 07, 2014 6:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You'd also need to make sure that the replytoqmgr on the outgoing messages is resolvable from the remote queue manager, that is that there's a path back. |
|
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
|
|
|
|