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 » share variable across different message flows

Post new topic  Reply to topic
 share variable across different message flows « View previous topic :: View next topic » 
Author Message
diego_maradona21
PostPosted: Tue Aug 19, 2008 3:02 am    Post subject: share variable across different message flows Reply with quote

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
View user's profile Send private message
sridhsri
PostPosted: Tue Aug 19, 2008 5:01 am    Post subject: Reply with quote

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
View user's profile Send private message
diego_maradona21
PostPosted: Tue Aug 19, 2008 5:22 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 19, 2008 5:52 am    Post subject: Reply with quote

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
View user's profile Send private message
LazyBoy
PostPosted: Tue Aug 19, 2008 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 19, 2008 10:55 am    Post subject: Reply with quote

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
View user's profile Send private message
LazyBoy
PostPosted: Tue Aug 19, 2008 11:28 am    Post subject: Reply with quote

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
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 » share variable across different message flows
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.