camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gudiseashok <gudise.as...@gmail.com>
Subject Second router in Pipeline not being reached in repeated interval scheldule
Date Tue, 10 Sep 2013 17:21:24 GMT
I am new to Apache Camel, but I am really trying hard to learn this. 

I working on below scenario 

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

 ***Repeating those above steps for every 30 minutes with timer (code is
below), 
and flexibility to add more routiens (steps 1 to 3 as a routine) at run
time, 
To achieve step by step process, I have used <pipeline> below, 

but my problem is it is not going to next router , it is always repeating
first Router (FTP file transfer).

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,

    
    <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:log-sftp-import"/> 
            <camel:to uri="direct:apache-lucene-indexing"/>
         </camel:pipeline>
</camel:route> 

<camel:route>
    <camel:from uri="direct:log-sftp-import"/>
          <camel:from
uri="sftp://{{sftp.completeurl}}&amp;binary=true&amp;timeout="900000"&amp;delay="600000"/>
         <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>

Please help...!




--
View this message in context: http://camel.465427.n5.nabble.com/Second-router-in-Pipeline-not-being-reached-in-repeated-interval-scheldule-tp5739050.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message