See the other methods that has a timeout to avoid waiting until a file becomes available.
On Fri, Feb 28, 2014 at 11:27 AM, geetha <happy9...@gmail.com> wrote: > Yeah understood the problem. > > i am listening to a queue for a message which contains the ftp server > details and path of the file. based upon the server details i have to get > the file. So i used consumer.receive inside one of my processor.It worked > fine if file exists. Without using consumer.receive, how can i get the file > from the remote server? > > Am using Spring DSL for defining the route. My camel-context.xml looks like > this. > > <context:property-placeholder > location="file:///etc/opt/edm/chargeevents/usagechargeevent.properties" /> > > <camelContext xmlns="http://camel.apache.org/schema/spring" id="xyz"> > <consumerTemplate id="consumer"/> > <route id="jmsTransport"> > <from uri="activemq:queue:testqueue"/> > <transacted/> > <process ref="prc1"/> > <process ref="prc2"/> > <process ref="prc3"/> > </route> > </camelContext> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/FileNotFound-exception-is-not-thrown-while-doing-SFTP-tp5748073p5748078.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io