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 IndexWebSphere Message Broker (ACE) SupportShared Variable in Shared Library

Post new topicReply to topic Goto page Previous  1, 2
Shared Variable in Shared Library View previous topic :: View next topic
Author Message
mgk
PostPosted: Wed Aug 16, 2023 5:30 am Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1638

Quote:
"The flow that you use to repopulate the cache after adding a new row to the DB table to be cached must literally be the same flow that is used for the initial populating of the cache - not even another flow in the same EG."


Correct. If that was not the case then you would not need to separate out the cache into its own flow. The reason is that a SHARED variable is scoped to a single flow so if two different flows have the same named SHARED variable then you actually have two different variables.

But as you found, putting a second input node into the callable flow (Flow1) allows you to update the cache when required. An alternative that works well when you need to update the cache more frequently is to have a "Timeout Notification" node in your Flow1 that will periodically fire to call a node to update the cache on a regular interval.

Hope that helps...
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportShared Variable in Shared Library
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.