Posted: Thu Jun 13, 2002 6:29 am Post subject: Request/Reply using Dynamic Queues
Newbie
Joined: 13 Jun 2002 Posts: 2
My apologies if this question sounds a little naive.
I'm attempting to create a simplistic request/reply messaging infrastructure using dynamic queues.
I've had no problem with the creation of dynamic queues on the sending Queue Manager (QM1), nor the sending of messages to the receiving application (QM2) by way of the API Exerciser - although in the production environment I will be using an adapter to populate the ReplyToQ field with the name of the dynamic queue that has been created.
My problem stems from difficulties with the reply message. What steps do I need to take to have the message delivered to the dynamic queue that I created on QM1? I have made sure that the ReplyToQ & ReplyToQMgr fields are populated within the MQMD and have experimented with populating different fields within the MQMD and MQOD to deliver the message successfully - but so far with no luck. I am putting the message to a Remote Queue on QM2 which points to a fixed local queue on QM1, but as there is no remote definition of the dynamic queue on QM2, this hasn't worked - and nor can I see how it will. I'm assuming there's some configuration with the remote queue or transmission queue that I'm missing, but if anyone could clarify what this might be I'd be very grateful.
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
Well this is how things need to be on the side of where the Reply application runs.
1) The application must read the reply qmgr name and reply queue name from the message and use those to reply with.
2) If the source to destination qmgrs are using server-server communications then the name of the transmit queue must match the name of reply qmgr name. If they dont match then you need to create
a qmgr alias.
qmgr alias define
define qr(REPLY_QMGR_NAME) rqmname(NAME_OF_REQUESTER_QMGR) xmitq(QMGR_NAME_OF_REPLY_SIDE_QMGR)
REPLY_QMGR_NAME This is the name of the queue manager that is in the mqmd as the reply queue manager name
NAME_OF_REQUESTER_QMGR This is the actual queue manager name can
be the same as above
QMGR_NAME_OF_REPLY_SIDE_QMGR This is the name of xmitq used to send messages back to the Requestor. _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
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