Posted: Thu Jun 16, 2011 11:50 am Post subject: No file available detection
Knight
Joined: 25 Aug 2006 Posts: 589
I am using WMB 61 and a filenode to pick up file from a remote customer. The file arrival is very unpredictable. Sometime is one file every few hours or a few files evey few hours. We want to be able to stop the message flow when there is no more file to process (like no message available on a MQGET wait) and restart it a few hours later. I can use Timer node to start the flow every few hours. But I have no idea how to detect that there is no more file so that I can use automation to stop the flow.Any idea ?
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
I would use cron and a shell script.
As a general rule, you do not want to use WMB as a system management tool. The task you describe is a system management task, not a transform or route task. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Thanks for the responses. This is kind of expected answer after I found nothing on the file node description. I just want to confirm that I have not missed anythng (or anything new).
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