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 picking message from the alias Q

Post new topic  Reply to topic
 MQInput node picking message from the alias Q « View previous topic :: View next topic » 
Author Message
mqlover
PostPosted: Thu Oct 04, 2012 1:53 am    Post subject: MQInput node picking message from the alias Q Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 04, 2012 2:06 am    Post subject: Reply with quote

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
View user's profile Send private message
mqlover
PostPosted: Thu Oct 04, 2012 2:31 am    Post subject: MQInput node picking message from the alias Q Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 04, 2012 2:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Oct 04, 2012 4:34 am    Post subject: Re: MQInput node picking message from the alias Q Reply with quote

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
View user's profile Send private message
mqlover
PostPosted: Thu Oct 04, 2012 8:13 pm    Post subject: MQInput node picking message from the alias Q Reply with quote

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
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 picking message from the alias Q
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.