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 » shared variable

Post new topic  Reply to topic
 shared variable « View previous topic :: View next topic » 
Author Message
madi
PostPosted: Tue Jan 30, 2007 2:30 pm    Post subject: shared variable Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Hi All

is there a variable in WMBv6 that can be accessed anywhere in the flow but just that instance of the flow and not shared between all the instances

i mean i want a variable to store something but it has to clear itself after that message is processed or that thread dies

shared variable is an option but its life in the life of the exec grp or the flow itself

any other options??

thanks
madi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 30, 2007 2:33 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Umm.

Everything in Environment has exactly that lifespan.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
madi
PostPosted: Tue Jan 30, 2007 2:53 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Umm ... i cannot use env coz i have timeout notification and so will loose env

i meant anything other than the obvious

--madi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 30, 2007 2:57 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can scope shared variables down to the Node level.

You can use a Java Singleton. With proper use of protected accessors, you can ensure that only java code in your flow can access the Singleton.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
madi
PostPosted: Tue Jan 30, 2007 3:06 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

jefflowrey wrote:
You can scope shared variables down to the Node level.



from message broker help online
Quote:
Long lifetime variables
Node Shared Node Life of node All threads of flow
Flow Shared Flow Life of flow All threads of flow


node shared also says it is accesseble to all threads??

thanks jeff

madi
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 » shared variable
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.