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 » Request/Reply message flow issue in Clustering

Post new topic  Reply to topic
 Request/Reply message flow issue in Clustering « View previous topic :: View next topic » 
Author Message
smv_mq
PostPosted: Sat May 07, 2022 9:05 pm    Post subject: Request/Reply message flow issue in Clustering Reply with quote

Newbie

Joined: 28 Jan 2022
Posts: 2

When ACE MQ queue manager sending the request from MQQM01 to MQMF01 , MQMF01 send the response to MQQM02 instead of MQQM01 in the MQ cluster.

is there is configuration required to receive the response in the same queue manager/same MQ queue ?


Flow
___________

(ACE/MQ)MQQM01/MQQM02 ----> Request --> MQMF01

(ACE/MQ)MQMF01 ----------------> Reply --> MQQM01/MQQM02



Cluster MQ queue manager


Full Repos:


MQQM01
MQQM02

Particial Repos:

MQMF01
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat May 07, 2022 9:50 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

The reply to queue should not be clustered... or if it is not have a cluseq(any)...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
EnigmaticCypher
PostPosted: Sat May 07, 2022 10:16 pm    Post subject: Reply with quote

Newbie

Joined: 01 Jan 2022
Posts: 5

fjb_saper wrote:
The reply to queue should not be clustered... or if it is not have a cluseq(any)...


To clarify here, clustering the reply queue is not really that much of an issue, though it should only be clustered on a single queue manager if you want to avoid issues like this where replies "could" be sent to multiple places.

It really depends on how you've setup your queues. At my work we use Alias -> Cluster Alias -> Local Queue setups very frequently and these have worked with no major issues. Though it should be noted that Request/Reply messaging has some particular requirements when it comes to security, especially when using Confirmation of Delivery reports, as noted here:

https://www.ibm.com/docs/en/ibm-mq/9.2?topic=mqmd-report-mqlong

Mainly that the UserId specified in the MQMD is used for authority checks when putting a report message to the specified reply queue. However, this doesn't apply if the application itself is sending the reply message (rather than letting the queue manager do it).
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sun May 08, 2022 3:06 am    Post subject: Re: Request/Reply message flow issue in Clustering Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

smv_mq wrote:
When ACE MQ queue manager sending the request from MQQM01 to MQMF01 , MQMF01 send the response to MQQM02 instead of MQQM01 in the MQ cluster.

is there is configuration required to receive the response in the same queue manager/same MQ queue ?


When ACE sends the request, the MQMD of that message should have the reply queue in the MQMD Reply To Queue field. It is the requesting app's responsibility to populate the MQMD Reply To Queue field. The requesting app should not attempt to populate the MQMD Reply To Queue Manager field, because the local queue manager will automatically fill that field in with its own name. So the outbound request message will have MQQM01 in the MQMD Reply To Queue Manager field in this example.

When the replying app on MQMF01 is ready to send the reply, it is that app's responsibility to specify both the destination queue name (from the request's MQMD Reply To Queue field) >>AND<< the destination queue manager name (from the request's MQMD Reply To Queue Manager field) on the MQOPEN/MQPUT1. This tells MQMF01 this message must be routed to a specific queue manager, in your example, MQQM01.

If both the requesting and the replying app satisfy their obligations this solution works automatically and correctly no matter how many different reply queues there are across no matter how many queue managers.
_________________
Peter Potkay
Keep Calm and MQ On
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 » Request/Reply message flow issue in Clustering
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.