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 » MQ based asynchronous req-res scenario

Post new topic  Reply to topic Goto page 1, 2, 3  Next
 MQ based asynchronous req-res scenario « View previous topic :: View next topic » 
Author Message
aggarwal.intouch
PostPosted: Wed Sep 18, 2013 6:48 am    Post subject: MQ based asynchronous req-res scenario Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

Hi Experts,
I need your advice and suggestion for one of the scenario. I want to setup an asynchronous request and response kind of scenario based on MQ protocol. If I will use the MQ GET node it will create the synchronous calls. Could you please suggest me some alternative way so that I can implement the same in my message flow.

I am working on WMB & MQ 7.0 version.
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Sep 18, 2013 6:52 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Two flows, each with an MQInput node.

There's a sample.
Back to top
View user's profile Send private message
aggarwal.intouch
PostPosted: Wed Sep 18, 2013 6:55 am    Post subject: Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

@Master - Could you please help me with the link of the message flows?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 18, 2013 7:01 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

aggarwal.intouch wrote:
Could you please help me with the link of the message flows?


What (in terms of your design) correlates the request with the response?

Use that to link the flows.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
aggarwal.intouch
PostPosted: Wed Sep 18, 2013 7:07 am    Post subject: Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

@Grand - Like when we use the MQ Get node that uses the correlation id to link the original message with response but in synchronous manner.

How we will achieve the same using correlation id without using the MQ Get node in asynchronous manner? I want my flow to be running if in case I am not getting any response for any of the request.

Please Suggest
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 18, 2013 7:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

aggarwal.intouch wrote:
How we will achieve the same using correlation id without using the MQ Get node in asynchronous manner?


By using something in the message that isn't the id

aggarwal.intouch wrote:
I want my flow to be running if in case I am not getting any response for any of the request.


Now this makes no sense whatsoever. If you're using an asyncronous model (i.e. nothing is waiting for a reply) how will you know if 1 (or all) of the responses are not turning up? Nothing's waiting for them so what will detect their non-arrival?

If I've invited my friends to dinner at 8pm, non-arrival by 8pm means their missing. If I've invited them round to dinner anytime, I'm not expecting them and won't know if they're late or not coming at all.

Explain more clearly please.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
aggarwal.intouch
PostPosted: Wed Sep 18, 2013 7:27 am    Post subject: Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

Vitor wrote:
If you're using an asyncronous model (i.e. nothing is waiting for a reply) how will you know if 1 (or all) of the responses are not turning up?

My main aim is to relate the coming responses with the correct request message. For the request message for which no response is coming I will not wait for them. <Fire and Forget>

I found on google that in WMB 8.0 version we could do achieve the same using the global cache. I am looking for the same kind of solution in WMB 7.0
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Sep 18, 2013 7:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There's a Sample in the Samples Gallery.

GlobalCache is the wrong solution for this anyway.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 18, 2013 7:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

aggarwal.intouch wrote:
My main aim is to relate the coming responses with the correct request message. For the request message for which no response is coming I will not wait for them. <Fire and Forget>


Fire & Forget is not Request / Response.

If you're not waiting for the responses, why do they need to be correlated with a specific request?

aggarwal.intouch wrote:
I found on google that in WMB 8.0 version we could do achieve the same using the global cache.


No you couldn't. Or perhaps more accurately you shouldn't.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
aggarwal.intouch
PostPosted: Wed Sep 18, 2013 7:43 am    Post subject: Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

Sample in gallery is pointing towards the synchronous example by using the mq get node.

I was looking for asynchronous scenario. Please correct me if my understanding is wrong. Please guide me with link to avoid any confusion.
Back to top
View user's profile Send private message Send e-mail
sumit
PostPosted: Wed Sep 18, 2013 7:53 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

In my opinion it's better if you clearly explains what you are looking for and what have you tried for it. I am not sure if others understood it well, but I am still not clear with the requirement/design.

Suppose you send 5 requests then you receive response of 4th request (async way). After 10 mins, you receive response of 1st request. How are you going to validate if this response belongs to first request (at broker level).

At least I am not clear with the requirement.
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Wed Sep 18, 2013 9:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

aggarwal.intouch wrote:
I was looking for asynchronous scenario.


I still don't understand why. You need to explain the requirement more clearly.

aggarwal.intouch wrote:
Please correct me if my understanding is wrong.


Well I think it might be.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 18, 2013 9:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Two MQInput nodes is asynchronous.

You don't need any sort of caching to correlate messages in MQ.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Wed Sep 18, 2013 12:01 pm    Post subject: Re: MQ based asynchronous req-res scenario Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

aggarwal.intouch wrote:
Hi Experts,
I need your advice and suggestion for one of the scenario. I want to setup an asynchronous request and response kind of scenario based on MQ protocol. If I will use the MQ GET node it will create the synchronous calls. Could you please suggest me some alternative way so that I can implement the same in my message flow.

I am working on WMB & MQ 7.0 version.


Are you saying you want to save some information from the request somewhere to be correlated with the response when it comes back?
But asynchronously...
Back to top
View user's profile Send private message AIM Address
aggarwal.intouch
PostPosted: Wed Sep 18, 2013 7:14 pm    Post subject: Re: MQ based asynchronous req-res scenario Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

JosephGramig wrote:
Are you saying you want to save some information from the request somewhere to be correlated with the response when it comes back?
But asynchronously...


Your understanding is absolutely correct. Need some suggestions to achieve this.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2, 3  Next Page 1 of 3

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQ based asynchronous req-res scenario
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.