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 » IBM MQ Java / JMS » Making Responder asynchrounous

Post new topic  Reply to topic
 Making Responder asynchrounous « View previous topic :: View next topic » 
Author Message
lookman
PostPosted: Wed Oct 19, 2005 8:45 am    Post subject: Making Responder asynchrounous Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 19, 2005 9:42 am    Post subject: Reply with quote

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
View user's profile Send private message
lookman
PostPosted: Wed Oct 19, 2005 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 19, 2005 10:19 am    Post subject: Reply with quote

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
  1. Receive a request message from an application
  2. Write the contents of the message into a file
  3. preserve the MQMD information for the request in some manner
  4. Start the third application
  5. wait for the third application to finish processing the file
  6. read the output file
  7. construct a reply message using the saved MQMD information
  8. 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
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 » IBM MQ Java / JMS » Making Responder asynchrounous
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.