|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Is there a way to trigger an action on Deployment or restart |
« View previous topic :: View next topic » |
Author |
Message
|
anil kumar |
Posted: Mon Jan 18, 2021 5:07 am Post subject: Is there a way to trigger an action on Deployment or restart |
|
|
 Voyager
Joined: 22 Jan 2017 Posts: 98 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 |
|
 |
abhi_thri |
Posted: Mon Jan 18, 2021 6:12 am Post subject: |
|
|
 Knight
Joined: 17 Jul 2017 Posts: 516 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 |
|
 |
anil kumar |
Posted: Tue Jan 19, 2021 1:09 am Post subject: |
|
|
 Voyager
Joined: 22 Jan 2017 Posts: 98 Location: India
|
Hey Abhi , I too thought of the process id work around first.
i will submit a RFE and see. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|