Hi, 
I don’t know how to pass data from one route that reads a file to another
route that is polling a database.

First route reads id from file.

      from("file:testcsv") 
      .unmarshal().csv()
      .to("direct:point1");

Second route needs to use the id in the sql

        from("timer://myTimer?period=1000")
        .to("sql:select * from test where id = #")
        .marshal().csv()
        .to("file:target/out ");


With sql consumer faced the same question.  

        from ("sql:select * from test where id = #?consumer.delay=1000")
        .marshal().csv()
        .to("file:target/out");

It seems that I’m missing something very basic here, please help.

Thanks and regards,
Lumi





--
View this message in context: 
http://camel.465427.n5.nabble.com/passing-data-to-a-polling-consumer-tp5740313.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to