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 » WebSphere Message Broker (ACE) Support » message flow with request/reply

Post new topic  Reply to topic
 message flow with request/reply « View previous topic :: View next topic » 
Author Message
Konrad
PostPosted: Tue Feb 03, 2009 7:13 am    Post subject: message flow with request/reply Reply with quote

Newbie

Joined: 04 Nov 2008
Posts: 5

Hi

I am trying to build a request/reply message flow like shown in this picture

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ac004503.gif

The message flow reads the request from the 'Input queue 1', uses a MQOutput to forward it to 'Receiver queue', waits for the Service which responds to 'Input queue 2' and forwards the message back to the Consumer's ReplyToQueue.

As far as I know it's recommended (performance reasons) to use 2 message flows. One to move the request from the consumer to the service and one to move the reply from the service to the consumer. I'm having problems with these because the ReplyToQueue can vary and therefore the second message flow doesn't know the right queue.

However, since performance is not really an issue, I would like to know if it wouldn't be possible and probably easier to combine both message flows to one.

Like:
Code:
MQInput(Consumer) -> MQOutput(Service) | Waiting ... | MQInput(Service) -> MQOutput(Consumer


Thanks in advance

Konrad
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Feb 03, 2009 7:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't use MQInput node like that.

You can use MQGet node like that.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Feb 03, 2009 8:06 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Remember that the flow will essentially be blocked from handling other messages while it is waiting for the reply unless you configure the flow to have extra instances.

This is a common problem and can be solved in many ways including saving the ReplyToQueue in a db table, shared variables etc.

Using a MQGet node to wait for the reply may require some tricky setup so that you give the MQGet node long enough before it times out but not too long so that other traffic is blocked for long periods.

If I were writting this flow, I wouldn't use the MQGet node in this way unless I was sure that the message rate was sufficiently low that I could guarantee that other requests would not get blocked.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 » WebSphere Message Broker (ACE) Support » message flow with request/reply
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.