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 » MQinput node having multiple queue names

Post new topic  Reply to topic
 MQinput node having multiple queue names « View previous topic :: View next topic » 
Author Message
mqlover
PostPosted: Sun Sep 30, 2012 7:34 pm    Post subject: MQinput node having multiple queue names Reply with quote

Disciple

Joined: 25 Jul 2010
Posts: 176

Hi,

Extending on the below thread,
http://www.mqseries.net/phpBB2/viewtopic.php?t=53668&sid=9822ee0124f30fa1891639b85b3b54fa

We have a requirement, that a message arrives on 3 different queues and we have to build a single flow starting with the MQInput node.
How can we set the Queue name property such that the message could be picked from multiple queues.
Is there any way we can work on this?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Sep 30, 2012 9:16 pm    Post subject: Reply with quote

Jedi Council

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

You can't configure the MQInput node to pick up messages based upon a changing queue name.

You have two (Simple) options

Just create Alias Queues for the three message types that point to the single queue that that the MQInput Node configured to read from.

OR

Use an MQInput Node configured for each queue and simply wire the 'out' terminals together.
_________________
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
mqlover
PostPosted: Sun Sep 30, 2012 10:08 pm    Post subject: MQinput node having multiple queue names Reply with quote

Disciple

Joined: 25 Jul 2010
Posts: 176

Hi,

Thanks so much.
I thought so, still wanted to confirm before proposing this approach.
Thanks a ton.
Back to top
View user's profile Send private message
ar.mm
PostPosted: Tue Sep 01, 2015 12:54 am    Post subject: Reply with quote

Newbie

Joined: 01 Sep 2015
Posts: 2

Hi,

Alias Queue is perfect approach, but I'm wondering if there is a way where the message flow can know from which Alias Queue the message came? If I set the local queue in MQInput node, then it will treat all messgaes as if they ware coming from single queue, I need the flow to distinguish the source application which sending to a specific alies queue that resolves to the queue used in MQInput node.

Thanks.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Sep 01, 2015 1:26 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.

ar.mm wrote:
Hi,

Alias Queue is perfect approach, but I'm wondering if there is a way where the message flow can know from which Alias Queue the message came? If I set the local queue in MQInput node, then it will treat all messgaes as if they ware coming from single queue, I need the flow to distinguish the source application which sending to a specific alies queue that resolves to the queue used in MQInput node.

Thanks.


There really isn't an OOTB way of detecting this.
However you could put the alias queue name (lenght permitting) into an unused field in the MQMD such as ApplIdentityData (32chars long) but this will require changes to both applications. But honestly is it worth the trouble?
_________________
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
zpat
PostPosted: Tue Sep 01, 2015 2:42 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

You can use the alias queue definitions to set different message priority values and detect this value in the message MQMD in the broker flow.

However it would of course cause these messages to be retrieved by priority unless you override the delivery sequence in the local queue definition to FIFO.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 01, 2015 5:02 am    Post subject: Reply with quote

Grand High Poobah

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

ar.mm wrote:
Hi,

Alias Queue is perfect approach, but I'm wondering if there is a way where the message flow can know from which Alias Queue the message came? If I set the local queue in MQInput node, then it will treat all messgaes as if they ware coming from single queue, I need the flow to distinguish the source application which sending to a specific alies queue that resolves to the queue used in MQInput node.


See the debate here which discusses your question.

I also repeat my associate's point that you should open a new thread and reference old ones rather than just reopen 3 & 4 years old threads.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 01, 2015 7:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

ar.mm wrote:
Hi,

Alias Queue is perfect approach, but I'm wondering if there is a way where the message flow can know from which Alias Queue the message came? If I set the local queue in MQInput node, then it will treat all messgaes as if they ware coming from single queue, I need the flow to distinguish the source application which sending to a specific alies queue that resolves to the queue used in MQInput node.

Thanks.

Smells like a request / reply scenario...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Tue Sep 01, 2015 8:41 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Yes, the REPLY-TO-QUEUE name field could also be used for identification of the origin message, even if it there was no reply message.

But that requires an application change.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
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 » MQinput node having multiple queue names
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.