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) SupportStartup/Bootstrap flow

Post new topicReply to topic
Startup/Bootstrap flow View previous topic :: View next topic
Author Message
fenway_frank
PostPosted: Wed Sep 11, 2013 6:29 am Post subject: Startup/Bootstrap flow Reply with quote

Apprentice

Joined: 21 Oct 2011
Posts: 43
Location: Boston, MA USA

Hello..
I have a need to “pre-load” the global cache that comes with WMB with results from a Registry Lookup. Ideally, this flow would start processing immediately upon EG startup, akin to a bootstrap procedure.
I’m aware of the messageflow and application “start mode” options (maintained, manual, auto) but that only establishes the app/flow run state disposition and doesn't actually initiate the flow execution.
Therein lies my situation, i don’t want an input node to jump-start the flow and just want to simply wire the RegistryLookup node to a few compute nodes and read, interpret, and ultimately load the cache.
Have others had similar requirements?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Sep 11, 2013 6:38 am Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

A Timernode can be made to run when the flow initially starts.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 11, 2013 6:38 am Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You can override a JCN class MbJavaComputeNode constructor to perform your initialization.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Sep 11, 2013 6:40 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You could write a Java User-Defined Node that would not require a real input, and would set a flag in the constructor, that determined whether it would propagate a message or not.

So the EG starts up, the Java class gets instantiated, the flag gets set to "true". The run method of the UDN gets called, it determines that the flag is "true", and propagates an empty BLOB message to the out terminal, and then sets the flag to false.
Back to top
View user's profile Send private message
fenway_frank
PostPosted: Wed Sep 11, 2013 7:32 am Post subject: Reply with quote

Apprentice

Joined: 21 Oct 2011
Posts: 43
Location: Boston, MA USA

thanks for the quick replies.

i did not consider timerNode but will give it a closer look. we've used JCN onInit() callback methods in the past but difference here is propagating an empty BLOB to out terminal. will try both suggestions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 11, 2013 8:01 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

fenway_frank wrote:
we've used JCN onInit() callback methods in the past but difference here is propagating an empty BLOB to out terminal.


Two differences.

I'm not talking about a JavaCompute node. I'm talking about a User Defined Node, that happens to be written in Java.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportStartup/Bootstrap flow
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.