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"&amp;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}}&amp;binary=true&amp;timeout="900000"&amp;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.

Reply via email to