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 Index » WebSphere Message Broker (ACE) Support » Trigger Email after a timeout

Post new topic  Reply to topic
 Trigger Email after a timeout « View previous topic :: View next topic » 
Author Message
Bichu
PostPosted: Wed Sep 28, 2016 1:57 am    Post subject: Trigger Email after a timeout Reply with quote

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
View user's profile Send private message
adubya
PostPosted: Wed Sep 28, 2016 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Bichu
PostPosted: Wed Sep 28, 2016 3:20 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Wed Sep 28, 2016 4:07 am    Post subject: Re: Trigger Email after a timeout Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Trigger Email after a timeout
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.