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 » Using shared variable and additional instances together

Post new topic  This topic is locked: you cannot edit posts or make replies.
 Using shared variable and additional instances together « View previous topic :: View next topic » 
Author Message
psandip
PostPosted: Mon Oct 19, 2009 1:04 am    Post subject: Using shared variable and additional instances together Reply with quote

Novice

Joined: 11 Aug 2006
Posts: 17

Hi,

I am using a shared variable for my message flow. The message flow generated a filename based on timestamp and assigns this name to the shared variable. A check is made within the compute node to see whether the shared variable is null or does it have a value. If it is null, the the filename is generated and assigned to it else, no need to assign a new name. Now suppose 10 instances of this message flow is to be deployed. once the shared variable is populated with a filename, can the other 9 flows access this value or they see it as null?
_________________
With Best Regards,
Sandeep
Back to top
View user's profile Send private message
nheng
PostPosted: Mon Oct 19, 2009 2:18 am    Post subject: Re: Using shared variable and additional instances together Reply with quote

Apprentice

Joined: 07 Dec 2007
Posts: 39

psandip wrote:
Hi,

I am using a shared variable for my message flow. The message flow generated a filename based on timestamp and assigns this name to the shared variable. A check is made within the compute node to see whether the shared variable is null or does it have a value. If it is null, the the filename is generated and assigned to it else, no need to assign a new name. Now suppose 10 instances of this message flow is to be deployed. once the shared variable is populated with a filename, can the other 9 flows access this value or they see it as null?


Declare it be external variable .Look t it in document
Back to top
View user's profile Send private message MSN Messenger
WMBDEV1
PostPosted: Mon Oct 19, 2009 2:38 am    Post subject: Re: Using shared variable and additional instances together Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

nheng wrote:
Declare it be external variable .Look t it in document


How will this help? Please tell us what you hope to gain by using the EXTERNAL keyword in this context?
Back to top
View user's profile Send private message
sirsi
PostPosted: Wed Oct 21, 2009 7:19 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

psandip: shared variables are shared across all threads(instances) of the flow...
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Wed Oct 21, 2009 7:23 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Just curious to know - which means we should not use multiple instances of the flow when shared variables are used in a flow?.

Thanks.
Back to top
View user's profile Send private message
sirsi
PostPosted: Wed Oct 21, 2009 7:31 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

its a duplicate post... continue threads here
http://www.mqseries.net/phpBB2/viewtopic.php?t=51238
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using shared variable and additional instances together
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.