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 » WebSphere Message Broker : Need help on usage of Timer Node

Post new topic  Reply to topic
 WebSphere Message Broker : Need help on usage of Timer Node « View previous topic :: View next topic » 
Author Message
sumitha.mp
PostPosted: Tue Aug 21, 2012 5:29 am    Post subject: WebSphere Message Broker : Need help on usage of Timer Node Reply with quote

Newbie

Joined: 21 Aug 2012
Posts: 9

HI,
I have a requirement to automatically (without any external trigger) run a message flow (MSG_FLOW1) at a specific time on Sunday to do some clean up activities in Database.
During the time MSG_FLOW1 is running , I need to stop my regular message flow (MSG_FLOW2) which has a TimeOutNotification Node and configured to runs in every 10 sec.

One way which which we could think about is introducing a time check in MSG_FLOW2 and if the time is nearing the clean up time , give an input to MSG_FLOW1 to start the clean up. Else do the regular activities of MSG_FLOW2. But since out MSG_FLOW2 is very complex having a conditional check in every 10 sec might not be a good approach.

Can you please help by suggesting a way to achieve this.

Thank You.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Aug 21, 2012 5:38 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Moved to MB support forum.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Aug 21, 2012 5:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Make better use of the system utilities designed for such: cron.

Don't turn WMB into a sys-admin tool. Use the sys-admin tools you already have.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Aug 21, 2012 5:44 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://www.ibm.com/developerworks/websphere/library/techarticles/0603_schutz/0603_schutz.html
Back to top
View user's profile Send private message
inMo
PostPosted: Tue Aug 21, 2012 9:29 am    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

The timeout notification node can run automatically upon deployment or flow start. You can use that capability to automatically schedule your desired time of timeout (Sunday at X o'clock) for your main flow. Your main flow will need another timeout notification node that fires on schedule. The scheduled flow will need to stop your other (10 second interval flow), do it's processing, then start the 10 second interval flow up, and reschedule the next run.
Back to top
View user's profile Send private message
sumitha.mp
PostPosted: Tue Aug 21, 2012 6:47 pm    Post subject: Reply with quote

Newbie

Joined: 21 Aug 2012
Posts: 9

inMo wrote:
The timeout notification node can run automatically upon deployment or flow start. You can use that capability to automatically schedule your desired time of timeout (Sunday at X o'clock) for your main flow. Your main flow will need another timeout notification node that fires on schedule. The scheduled flow will need to stop your other (10 second interval flow), do it's processing, then start the 10 second interval flow up, and reschedule the next run.



Thank you for responding to my query.
Can you please tell me how to achieve this-> The scheduled flow will need to stop your other (10 second interval flow)
How do we stop/start a message flow by getting control from another flow ?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Aug 21, 2012 9:19 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Controlling one flow from another has been discussed many times on this forum.
-- Job Control node support pack
-- Issue PCF commands to 'get inhibit' the input queue of a queue
-- Write some java to issue the mqsi... commands

I am sure there are many others.
_________________
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 » WebSphere Message Broker : Need help on usage of Timer Node
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.