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 SupportIs there a way to trigger an action on Deployment or restart

Post new topicReply to topic
Is there a way to trigger an action on Deployment or restart View previous topic :: View next topic
Author Message
anil kumar
PostPosted: Mon Jan 18, 2021 5:07 am Post subject: Is there a way to trigger an action on Deployment or restart Reply with quote

Voyager

Joined: 22 Jan 2017
Posts: 87
Location: India

Hi All ,

I just wanted to know is there any way/flag/function in ESQL that will indicate if a message flow is stopped/started or freshly deployed.

I'm looking for ESQL alternative to onInitialiaze() Method in Java compute.

i want to use it to read configuration files if message flow is restarted or freshly deployed.

Thanks ,
Anil.
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Mon Jan 18, 2021 6:12 am Post subject: Reply with quote

Chevalier

Joined: 17 Jul 2017
Posts: 418
Location: UK

hi...don't think there is an equivalent 'onInitialize' ESQL as such but if the param you intend to reload is configured via policies then that should get reloaded by default whenever the integration server is restarted.

At a code level couple of options using Shared variable are,
- Save the 'ProcessId ' value to a shared variable and inspect it at the start of the flow, if changed that indicates that the process was restarted

https://www.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.etools.mft.doc/ak04897_.html

- Similar to above, i've seen scenarios where a shared cache is refreshed after specific time interval (say 30mins). i.e Load the cache and save the current timestamp to a shared var, inspect this timestamp at the start of the flow and if exceeds the limit reload it.
Back to top
View user's profile Send private message
anil kumar
PostPosted: Tue Jan 19, 2021 1:09 am Post subject: Reply with quote

Voyager

Joined: 22 Jan 2017
Posts: 87
Location: India

Hey Abhi , I too thought of the process id work around first.

i will submit a RFE and see.
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 SupportIs there a way to trigger an action on Deployment or restart
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.