|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Trigger Email after a timeout |
« View previous topic :: View next topic » |
Author |
Message
|
Bichu |
Posted: Wed Sep 28, 2016 1:57 am Post subject: Trigger Email after a timeout |
|
|
Centurion
Joined: 16 Oct 2011 Posts: 124 Location: London
|
I need to trigger an email based on an incoming message. If I get a stop message, I need to wait for 5 minutes to listen whether any start message is coming. If a start message is not received within 5 minutes, then I need to trigger an email otherwise need to discard the stop message. The message is coming in an xml format in a particular tag element.
Below is my design
stopMsg -> Compute -> TimeOutControl Node
TimeOutNotification Node -> Compute -> EmailOutput Node
When a stopMsg is received, in the compute node, I will set an environment variable, construct a timeout request and will trigger TimeOutControl Node. If a start message is received, it will send to the same compute and will check the environment variable and will override; hence discard the stopMsg. If startMsg is not received, after 5 minutes, message will be triggered to the EmailOutput node.
I request your thoughts on this design since I am using timer nodes for the first time. Also, I read that the timer nodes behave abnormally when a broker restart is performed. |
|
Back to top |
|
 |
adubya |
Posted: Wed Sep 28, 2016 2:53 am Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
You could also use a Collector node to implement this kind of behavior. _________________ Independent Middleware Consultant
andy@knownentity.com |
|
Back to top |
|
 |
Bichu |
Posted: Wed Sep 28, 2016 3:20 am Post subject: |
|
|
Centurion
Joined: 16 Oct 2011 Posts: 124 Location: London
|
Many Thanks Adubya. I will have a look on its feasibility with my requirement. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Sep 28, 2016 4:07 am Post subject: Re: Trigger Email after a timeout |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Bichu wrote: |
I request your thoughts on this design since I am using timer nodes for the first time. Also, I read that the timer nodes behave abnormally when a broker restart is performed. |
They don't behave abnormally when a flow/eg/broker restart happens.
They simply fire and you can take advantage of this to tailor your code.
Why don't you see for yourself rather than relying on the words of stranges on the internet?
1) deploy a flow with timer nodes.
2) start user trace
3) restart the EG
4) wait for a bit
5) then collect the user trace and look at the output. _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|