|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Referring Promoted Property in esql |
« View previous topic :: View next topic » |
Author |
Message
|
GeneRK4 |
Posted: Fri May 09, 2014 12:29 am Post subject: Referring Promoted Property in esql |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Hi,
I have a design where I have a Trigger Queue in a subflow.
This subflow is a reusable utility.This trigger queue name will change in each Application where this subflow is referred.
This Trigger queue is an MQInput node Queue name.In the previous compute node,in LocalEnvironment,we are setting this queue name for the Trigger queue.
If it were MQGet node,we can take it as UDP property and refer in LocalEnvironment.
But since it is MQInput node(for Trigger queue),I think only option is promote property.And if so,how can we refer the promoted property in the previous compute node esql?
Need suggestion please... |
|
Back to top |
|
 |
Esa |
Posted: Fri May 09, 2014 12:34 am Post subject: Re: Referring Promoted Property in esql |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
Just read MQMD.SourceQueue from the input message. It doesn't have to be more complicated than that. |
|
Back to top |
|
 |
Esa |
Posted: Fri May 09, 2014 12:49 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
I read again.
So you have a sublow file that contains a subflow and a separate 'trigger' msgflow and you would like to know what the name of the input queue of the trigger flow is in runtime?
GeneRK4 wrote: |
But since it is MQInput node(for Trigger queue),I think only option is promote property.And if so,how can we refer the promoted property in the previous compute node esql? |
An MQInput node cannot have a previous compute node.
So obviously the compute node is previous to an MQ Output node that is supposed to put a message in the trigger queue.
And you would like to resolve the queue name dynamically.
An alternative would perhaps be to promote both MQInput.queuename and MQOutput.queuename to one single promoted property? Then you wouldn't have to resolve anything dynamically. |
|
Back to top |
|
 |
GeneRK4 |
Posted: Sun May 11, 2014 9:13 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Esa wrote: |
An alternative would perhaps be to promote both MQInput.queuename and MQOutput.queuename to one single promoted property? Then you wouldn't have to resolve anything dynamically. |
Great answer...! I will try this and let you know.. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|