|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Making Responder asynchrounous |
« View previous topic :: View next topic » |
Author |
Message
|
lookman |
Posted: Wed Oct 19, 2005 8:45 am Post subject: Making Responder asynchrounous |
|
|
Novice
Joined: 21 Sep 2005 Posts: 10
|
Hi,
Currently our application uses MQSeries Request/Reply using java.
The requester puts a request message on request queue,the responder retrieves the request message prepares a response and puts the response message.
In responder i take the request message'd message ID and set it as response message's correlID.
The change i req. is in Responder where in the responder retrives the request message and ends saving it as a file, Where message id is lost. Now a third application should prepare a response from this file, without actaully being called by Responder, how can i achieve?
regards,
lucky. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Oct 19, 2005 9:42 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Why would you bother using a file? Just use another queue and trigger the third application.
If you remove the message ID, you will never be able to send the right information back to to the requester, or the requester will never be able to correlate the response properly.
Do you have a stand-alone, third party application that has to process this data and generate a response file?
Then you can't use request/reply. You have to use "fire and forget" on both ends, and have some mechanism in the data itself to correlate the "request" with the "reply". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
lookman |
Posted: Wed Oct 19, 2005 10:10 am Post subject: |
|
|
Novice
Joined: 21 Sep 2005 Posts: 10
|
The underlying application using MQSeries processes xml files.
The MQ request message (from requester) are retrieved and converted into xml files , after changing few of xml element's data ,this file is converted into a message to which i have to write the message id of request message and put it on request queue on which requester is waiting...
Kindly suggest.
Thanks. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Oct 19, 2005 10:19 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
lookman wrote: |
The underlying application using MQSeries processes xml files.
The MQ request message (from requester) are retrieved and converted into xml files , after changing few of xml element's data ,this file is converted into a message to which i have to write the message id of request message and put it on request queue on which requester is waiting...
Kindly suggest.
Thanks. |
So, what you need to do is - Receive a request message from an application
- Write the contents of the message into a file
- preserve the MQMD information for the request in some manner
- Start the third application
- wait for the third application to finish processing the file
- read the output file
- construct a reply message using the saved MQMD information
- send the reply
This is straight forward to do in any programming language. However, it very much conflicts with your original requirement "a third application should prepare a response from this file, without actaully being called by Responder'.
Although if you think about it for a while, I'm sure you can come up with a mechanism to start the third application without having the responder do it, and without having the responder wait for the third application to finish. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|