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 » TimeOut Notification Design

Post new topic  Reply to topic
 TimeOut Notification Design « View previous topic :: View next topic » 
Author Message
kirankinnu
PostPosted: Tue Jan 22, 2008 8:07 am    Post subject: TimeOut Notification Design Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

Hello Folks,
I have a design question to ask. We are having 2 flows, both needs to be run every 30 minutes. But there should be a gap of 15 minutes between both of them. I am using TimeoutNotification to schedule the time. I am deploying the first flow and after 15 minutes I am deploying the second flow, so that both maintain the time difference.
So the first flow would run in this fashion: 00, 30, 1:00, 1:30...
Second flow would run in this fashion 15, 45, 1:15, 1:45....

But the problem over here is when the broker gets restarted, both of them r starting at the same time. Basically the broker restart should not effect the timings.
How could we design this.
I would appreciate any suggestions/help.

Regards,
Kiran
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 22, 2008 8:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You want to change the flows.

You should, in the flow, calculate (maybe based on a user defined property) when the next interval should start.

For example, get the current time, and then calculate how long you need to delay until the first interval. Then stick a flag into a shared variable that says you can just wait 30 minutes the next time.

This can be done with TimeoutControl in addition to TimeoutNotification.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
TonyD
PostPosted: Wed Jan 23, 2008 10:47 am    Post subject: Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

You might find this document useful:

http://www.ibm.com/developerworks/websphere/library/techarticles/0603_schutz/0603_schutz.html
Back to top
View user's profile Send private message Send e-mail
kirankinnu
PostPosted: Wed Jan 23, 2008 12:53 pm    Post subject: Solved Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

Thank You for the support
As Jefflowrey said, I had to use both the TimeoutControl and TimeOutNotification nodes. I had to compile the schedule time and send it to TimeOutControl, which would later trigger the TimeoutNotification node in a controlled fashion.

Regards,
Kiran
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 » TimeOut Notification Design
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.