On Tue, May 25, 2010 at 10:50 AM, titexe <[email protected]> wrote: > > Hello, > > How file component can discard empty file (0 Bytes) ? > > <route> > <from uri="file:c:\\\test?readlock=change"> > <to uri="activemq:queue:A"> > </route> > > the goal : to be sur, that all messages in queue A is not empty. > > thank you in advance, >
You can use a custom filter on the file endpoint where you implement the logic in the filter to skip 0 bytes files. > titexe > -- > View this message in context: > http://old.nabble.com/Camel-File-%3A-Discard-empty-file-tp28665819p28665819.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
