Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anybody help me out????

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi Can anybody help me out ...?????

I am newbie to this MQ Series, & trying to explore the features...
Here is my problem... Thanks inadvance.

Here my client application CA put one message(Request R1) on Queue Q1, Now the Server Application SA receives this message and process the message, prepares message(response, which contains some data) and put message on Q2. The client Application CA should receive this message for further processing to display to the end user. So how do my client application know this response on Q2 is reference to the request R1?
Bcoz there could be several messages on Q2, out of which how could my Client application identifies its response message from the Server Application on Q2? I guess there should be some way to identify.

Both Q1 & Q2 are owned by same QManager. ie, there is only one QManager, with 2 different Qs( Q1 & Q2).

Here what i am actually trying to do:

1) Client application will put a message on Q1. Waits for the response from Server Application (Looking on Q2)
2) Server Application Receives this message & process the message, and prepares a response message and finally put it on Q2.
3) Now Client application receives the message and display to the End user.

Thanks,
Gopi
 
In the MQMD there is a Correlation Id. CA builds this unique id for each message. When SA responds, it uses the same CorreId in the message it returns. You now have a link.

 
Hi Gopi,

I have the same problem. If you get over it, please
tell me how.

Thanks,
Galor.
 
To clarify, your server process should strip the messageID from the MQMD of the request message. It should then use this value as the correlationID field of the reply message.

The client-side process process:
The client application puts the request message, then saves the messageID created by this put. Next, it does a get on the reply queue looking for reply messages where the correlationID is equal to the recently saved messageID.

Simple...

Scott Meridew
Certified MQSeries Specialist
TxMQ Inc.
scott@txmq.com Scott Meridew
Certified MQSeries Specialist,MCSE
MQ Squared Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top