Hi You can use the option sendEmptyMessageWhenIdle and then detect the empty message in the route, and then stop the app.
It has been discussed on this mailing list before, can you google a bit. There should be recent talks about this from this year as well. There is several solutions for this. On Sun, Apr 29, 2012 at 2:41 PM, Larry Meadors <[email protected]> wrote: > I have a file consumer that uploads files to a server. It acts like a > batch consumer, and uploads all the files an exits. > > That part is perfect. > > The only problem I have is that if it gets run and there are NO files, > it doesn't exit. > > I'm guessing there is an option that I'm missing. > > This is my source definition: > - > file:\\\\mac-server\\images\\stagefullscanthumbnails\\?initialDelay=0&delete=true > > Larry -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
