On Thu, Jan 30, 2014 at 11:35 AM, <ravindra.godb...@cognizant.com> wrote: > > If custom filter is written then it will return true when both files are > present and then first file will be picked up but what about the second file. > > During processing of second file, custom filter will return false ? > > Need to check how it behaves ? >
Camel filters first the files, before it processes the batch of files that was accepted. > > > -----Original Message----- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: Thursday, January 30, 2014 3:44 PM > To: users@camel.apache.org > Subject: Re: File Exists > > On Thu, Jan 30, 2014 at 4:49 AM, JKemp <kemp.ja...@gmail.com> wrote: >> Hey guys, >> >> I'm trying to write a Camel route that will only kick off once two files are >> present on the server, but I can't seem to figure out an easy way to do >> this. I was hoping there'd be a Simple command for this or some feature in >> the File component, but I haven't found anything that looks promising. >> > > Yeah write a custom filter, and then only return true when both files are > there. > > >> I was thinking I could start my route with a file endpoint, then do a poll >> enrich on the second file and kick out an error if the second file doesn't >> exist, but this seems a little kludgy. Is there a better way to accomplish >> this? >> >> Thanks. >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/File-Exists-tp5746608.html >> Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > Make your Camel applications look hawt, try: http://hawt.io > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. If you are not the intended recipient(s), please reply to the > sender and destroy all copies of the original message. Any unauthorized > review, use, disclosure, dissemination, forwarding, printing or copying of > this email, and/or any action taken in reliance on the contents of this > e-mail is strictly prohibited and may be unlawful. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io