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 » Question on Shared Variables

Post new topic  Reply to topic
 Question on Shared Variables « View previous topic :: View next topic » 
Author Message
ein
PostPosted: Wed Jan 05, 2011 4:20 am    Post subject: Question on Shared Variables Reply with quote

Centurion

Joined: 14 Mar 2009
Posts: 108

Hi Guys,

I declared Shared Variables in one of my flow. The flow fetch the values from DB and assign values to those shared variables.

My another flow need to get those shared variables , But It gets only declared values like

DECLARE flg SHARED BOOLEAN FALSE.

My First flow assign a value to flg as TRUE. But My Second flow is it receives only FALSE.

Can one suggest me how i need to read those assigned values.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jan 05, 2011 4:21 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What scopes are SHARED variable valid in? What does the documentation say?
Back to top
View user's profile Send private message
ein
PostPosted: Wed Jan 05, 2011 4:21 am    Post subject: Reply with quote

Centurion

Joined: 14 Mar 2009
Posts: 108

The documentation says, The scope is Exe Grroup.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jan 05, 2011 4:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It says more than that.

Among other things, it talks about a difference between Module and Schema scope.

It also should explicitly state that you can't share variables between two flows.
Back to top
View user's profile Send private message
ein
PostPosted: Wed Jan 05, 2011 8:27 pm    Post subject: Reply with quote

Centurion

Joined: 14 Mar 2009
Posts: 108

ok, Then ,

I have a requirement like that. How do i achive it?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 05, 2011 9:54 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

RMI to a static variable with synchronized methods residing in a single JVM... would be one way of doing it...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Jan 06, 2011 2:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

fjb_saper wrote:
RMI to a static variable with synchronized methods residing in a single JVM... would be one way of doing it...


Oh, sure, suggest the hard way.
Back to top
View user's profile Send private message
bsiggers
PostPosted: Thu Jan 06, 2011 9:38 am    Post subject: Reply with quote

Acolyte

Joined: 09 Dec 2010
Posts: 53
Location: Vancouver, BC

Would suggest something simple like reading the contents of the variable from a shared file, or maybe a database table if you happen to have one.

Of course, this has many impacts and drawbacks, including synchronization, performance, etc. which may or may not be relevant depending on what you're doing. But without further information it's hard to make recommendations.
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 » Question on Shared Variables
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.