|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
use of timeout node to start/stop a flow at given time? |
« View previous topic :: View next topic » |
Author |
Message
|
pcelari |
Posted: Thu Mar 10, 2011 2:20 pm Post subject: use of timeout node to start/stop a flow at given time? |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Hello,
is it possible to start and stop a message flow at certain time using timeout nodes? say every midnight?
I have a need to read all logged messages from log queues and write to a file every midnight. However, the timeout notification node can only be configured to run at defined interval from the time the broker is started.
An alternative would be to use a cron job to send a message at every midnight to start a flow to achieve the above, and then stop it, but haven't figured out how.
Has anyone done this or similar?
thanks for sharing your insight!
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
j.f.sorge |
Posted: Thu Mar 10, 2011 11:49 pm Post subject: |
|
|
Master
Joined: 27 Feb 2008 Posts: 218
|
We are stopping some message flows by using an external application which uses CMP API. This application gets triggered by MQ messages which are sent by an application started with our scheduler. _________________ IBM Certified Solution Designer - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Mar 11, 2011 2:40 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
The JOB control node support pack can also be programmed to do all sorts of nice things.
I use it to control FlowMonitoring where it is difficult to get command line access to the system.
Two simple CRON Jobs would also do the job.
One to start the flow at midnight and the other to (sometime later) stop it.
THere are many other solutions including using a second QMGR and holding all the messages on that until the desired time. Then starting the channel, thus releasing all the messages. Then waiting a minute or so and then stopping it. _________________ 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 |
|
 |
pcelari |
Posted: Fri Mar 11, 2011 5:21 am Post subject: |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Hi j.f.sorge and smdavies99,
thanks so much for sharing these!
I didn't know there are command to start and stop single messageflows. Then it becomes a trivial task to do what I need, and no need to use the timeout node.
 _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
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
|
|
|
|