Hi This is not a bug. ReceiveNoWait is for queing systems where messages is already available in a queue, eg SEDA / JMS etc. When you poll from a ftp/file then its polled on demand, and you need to give it some amble time to do this eg with the timeout option.
On Thu, Jun 13, 2013 at 4:39 PM, thorbcn <sea...@gmail.com> wrote: > I've done same test now with ftp endpoint > > InputStream is= > consumer.receiveBodyNoWait("ftp://admin@localhost:2121/test?fileName="+filename+"&password=admin", > InputStream.class); > > Using receiveBodyNoWait method a null is returned, but using receiveBody > setting a timeout the test works... > > I really think this may be a bug. I'm testing camel v2.11 in win8 and apache > ftp-server 1.0.6... > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/ConsumerTemplate-issue-tp5734177p5734182.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen