Hi You weren't clear about the step it's getting stuck at, enable trace logging to see what it's doing. And to transfer from ftp to the file system you don't need "bean:fileCopier", not sure what it's doing because you didn't include details of it. Perhaps it's getting stuck there or at "bean:luceneIndexer?method=luceneIndexing", it's also possible there are no files in that directory and it's waiting, so check the logs.
Just a note that pipeline is the default mode so you don't have to explicitly state it. Regards, Taariq On Tue, Sep 10, 2013 at 4:19 PM, gudiseashok <gudise.as...@gmail.com> wrote: > Hi > > Greetings everyone, I am new to Apache Camel, but I am really trying hard > to > learn this. I am a Spring Integration developer from 4 years, and I felt to > explore Camel based on recent reviews I read. > > I have a scenario here where I am facing trouble to proceed further, my > requirement is > > 1) Read from Remote server, to local directory > 2) Use above local folder with Apache Lucene to index those files > 3) Inform listerner to update this step > > ***Repeat those above steps for every 30 minutes, and flexibility to add > more routiens (steps 1 to 3 as a routine) at run time, suppose I have more > remote machines, I want to make this as a flexible route to add at > run-time. > To ensure that happening step by step I have used <pipeline> below, but my > problem is it is not going to next step ... could you please guide me with > this requirement, I would like to prove this is more simple than spring > integraton. Please do needful, and also please suggest incase of any other > efficient way to achieve above requirement incase I am going in wrong way. > > Please find my config below, > > I wrote this way, > <code> > <camel:camelContext utoStartup="true"> > <camel:propertyPlaceholder id="sftpproperties" > location="camel-ftp-config.properties"/> > <camel:route id="log-sequence-scheduler"> > <camel:from > uri="timer://myTimer?fixedRate="true"&period="1200000"/> > <camel:pipeline> > <camel:to uri="direct:apache-lucene-indexing"/> > <camel:to uri="direct:log-sftp-import"/> > </camel:pipeline> > </camel:route> > > <camel:route> > <camel:from uri="direct:log-sftp-import"/> > <camel:from > uri="sftp://{{sftp.username}}@{{sftp.remote.source.system}}// > > {{sftp.remote.log.directory}}?password={{sftp.password}}&binary=true&timeout="900000"&delay="600000"/> > <camel:to uri="log:loggingCategory?level={{sftp.log.category}}"/> > <camel:to uri="bean:fileCopier"/> > <camel:to uri="file://{{sftp.destination.directory}}"/> > </camel:route> > > <camel:route> > <camel:from uri="direct:apache-lucene-indexing"/> > <camel:to uri="bean:luceneIndexer?method=luceneIndexing"/> > </camel:route> > </camel:camelContext> > <code> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Need-Help-in-a-scenario-which-is-not-working-as-expected-Camel-Route-based-code-tp5739029.html > Sent from the Camel - Users mailing list archive at Nabble.com. >