Author |
Message
|
mqlover |
Posted: Thu Oct 04, 2012 1:53 am Post subject: MQInput node picking message from the alias Q |
|
|
Disciple
Joined: 25 Jul 2010 Posts: 176
|
Hi,
I have a Local queue on a queue manager but create 2 alias for the local queue, one to put and other for get and make the alias q as the clustered queue as we are using MQ Cluster.
Can I use MQInput node to pick message from the clustered alias Q and send the message to the MQOutput node and inturn put into the other clustered Alias Q which has Get enabled ?
Here in this scenario, there is only Local queue but two Aliases for that. After the flow when the message goes back to the Target queue, wont the MQInput node again pick the message and start the transaction?
Could anyone please help. Am sorry if this query was already answered. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 04, 2012 2:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Yes, if you use an MQOutput to write to a queue that's being monitored by an MQInput, it will cause the MQInput to read the message and start a new flow instance.
Yes, if you do this with an MQOutput tied to the same flow as the MQInput node this will create a loop spawning new instances very very rapidly.
No, the fact that you're using qaliases doesn't change anything.
No, the fact that you've set different permissions on the qaliases doesn't change anything. |
|
Back to top |
|
 |
mqlover |
Posted: Thu Oct 04, 2012 2:31 am Post subject: MQInput node picking message from the alias Q |
|
|
Disciple
Joined: 25 Jul 2010 Posts: 176
|
Thanks a ton.
Another approach, can I use the Local q for the MQInput node and in MQOutput node can I use the Alias Q?
Is this approach better.
I think then there would not be infinite spawning of the message flow?
Please advise.
Thanks |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 04, 2012 2:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I repeat.
The fact that you're using qaliases doesn't change anything.
Every message that gets PUT to the queue that's being read by an MQInput node will cause the start of a new flow - unless something is horribly broken. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 04, 2012 4:34 am Post subject: Re: MQInput node picking message from the alias Q |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqlover wrote: |
I think then there would not be infinite spawning of the message flow? |
I'm not sure "think" is the correct word for what you're doing?
What leads you to this conclusion? What about an alias queue leads you to believe that this would prevent the spawning you describe?
What part of the explaination given by my most worthy associate do you disagree with? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqlover |
Posted: Thu Oct 04, 2012 8:13 pm Post subject: MQInput node picking message from the alias Q |
|
|
Disciple
Joined: 25 Jul 2010 Posts: 176
|
Sorry I just jumped to the conclusion.
That was indeed a valuable suggestion and I have followed the same too.
Thanks mqjeff for your suggestion. I just jumped to the conclusion of using AliasQ without re-considering that it would be spawning the flow again.
Thanks |
|
Back to top |
|
 |
|