You cannot have from inside a route, that is only to start a route.

You need to use the content enricher EIP
http://camel.apache.org/content-enricher.html

There is a pollEnrich you can use to poll a file.

On Fri, Oct 2, 2015 at 6:46 PM, dfgcamel <dfglove...@gmail.com> wrote:
> Thanks for the response Claus.
>
> I've tried the allowNullBody option but it still doesn't work.  I'm
> wondering if it could be that in my scenario, I branch and use the
> .to("file.. instead a .from("file...  I say this because  I had this
> partially working before without the branching and I used .from("file..
> directly after the .process( section.  is there a way to achieve a branch
> that still allows me to use the .from("file.. syntax?
>
> Thanks,
>
> Dennis...
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Cannot-write-null-body-to-file-using-ftp-component-tp5772164p5772192.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Reply via email to