camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Re: Camel FTP Producer Issue
Date Wed, 17 Oct 2012 06:33:05 GMT
getOut() should only used when you use a InOut exchange (pattern) which is
not the case here. Typically, this occurs if you use a from(jetty, cxf,
mina, netty) component.

Use exchange.getIn().setBody(inputStream) in your case.

On Wed, Oct 17, 2012 at 6:19 AM, rajivbandaru <rajivbandaru@gmail.com>wrote:

> Hi,
>
> I have the following route that listens to messages on the vm q and then
> ftp's the content of that file to a ftp server, simple.
>
> <from uri="vm:vq3"/>
>         <log message="&quot;dyna ftp log&quot; ${body}"/>
>         <bean ref="pdfReader"/>
>         <log message="&quot;After body replace&quot; ${body}"/>
>         <to
> uri="ftp://admin@sdqdcstgapp12
> /pub/incoming/test?password=pass&amp;binary=true"/>
>
> What bean does is puts the pdf binary content into the body using the
> exchange.getOut().setBody(inputStream);
>
> Problem is that file is written on the ftp server with no contents, I mean
> a
> empty file. What am I doing wrong? Appreciate your thoughts.
>
> Thank you
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-FTP-Producer-Issue-tp5721157.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>



-- 
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message