camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Using FTP
Date Sat, 19 Nov 2011 07:54:30 GMT
On Fri, Nov 18, 2011 at 8:29 PM, kiran <> wrote:
> Hi,
> Is it mandatory that to use FTP component in camel it needs to be chained
> with a File component? for eg from ("file://) to ("ftp")? Can I chain
> directly a bean output to ftp component like from(bean) to (ftp) or create a
> direct end point to the ftp component?
> If the second and third case is feasible, what is the input expected by FTP
> component? File object, or String or InputStream?

You can chain the ftp component with whatever you want.

The input is expected to by convertable to InputStream.
Camel has built-in converters which can convert between the common types.

Mind that from(bean) does not make a good choice, as Camel will keep
call a method
on the been forever.

If you want to send a message to a Camel endpoint / route from Java
code, then look at

> Regards
> Kiran
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message