Author |
Message
|
diego_maradona21 |
Posted: Tue Aug 19, 2008 3:02 am Post subject: share variable across different message flows |
|
|
Novice
Joined: 24 Jul 2008 Posts: 17
|
hi
i have to share variable across 2 different message flows - is it possible?
I found that i have to use EXTERNAL variables and ATOMIC statement
http://www.mqseries.net/phpBB2/viewtopic.php?t=44168
but i read that external variable cannot be set from esql.
Any suggestions? |
|
Back to top |
|
 |
sridhsri |
Posted: Tue Aug 19, 2008 5:01 am Post subject: |
|
|
Master
Joined: 19 Jun 2008 Posts: 297
|
You want to look at a support pack called Cache Nodes - I forget the support pack number. |
|
Back to top |
|
 |
diego_maradona21 |
Posted: Tue Aug 19, 2008 5:22 am Post subject: |
|
|
Novice
Joined: 24 Jul 2008 Posts: 17
|
thanks for reply but i cannot add any support packs so you mean that it is impossible without support pack? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 19, 2008 5:52 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't share ESQL variables between different message flows.
You can only share them between either a) different instances of the same message flow, b) different instances of a node within a single message flow. And in all cases, you can't share this between ExecutionGroups.
If you can't use the Cache supportPac (IA91), then you can use a database or a message on a queue, or a large number of other ways - all requiring a lot more work and effort on your part. |
|
Back to top |
|
 |
LazyBoy |
Posted: Tue Aug 19, 2008 10:05 am Post subject: |
|
|
Voyager
Joined: 04 May 2006 Posts: 78
|
Please correct me If I am wrong,
If you declare a shared variable at schema level and if two flows are in the same schema , the variable is shared between the two flows.
Isn't this true? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 19, 2008 10:55 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
LazyBoy wrote: |
Please correct me If I am wrong,
If you declare a shared variable at schema level and if two flows are in the same schema , the variable is shared between the two flows.
Isn't this true? |
What happens when you try it?
What documentation do you have that shows this to be true? |
|
Back to top |
|
 |
LazyBoy |
Posted: Tue Aug 19, 2008 11:28 am Post subject: |
|
|
Voyager
Joined: 04 May 2006 Posts: 78
|
Hi mqjeff,
I had tried this ,
I had two message flows in same schema. I had declared and initialized a shared variable in one of the flow and I could see those variables in another flow with initialized values. But since I was not changing the values of those variables in the flow , I was not sure about this.
This made me put forth the question. |
|
Back to top |
|
 |
|