Re: Camel fetch multiple data from database once, then stops?

2015-11-19 Thread KatoneVi
Solved it! Thanks to Claus's suggestion from this post http://camel.465427.n5.nabble.com/Stop-a-SQL-route-in-Apache-Camel-td5768252.html I changed the structure to this! from("timer:foo?period=5s") .to("sqlComponent:{{sql.selectNewTopic}}") .bean(

Re: Camel fetch multiple data from database once, then stops?

2015-11-19 Thread KatoneVi
I should add that instead of creating just three files for those three rows... it creates 18 files... the other 15 being duplicates of the first 3. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-fetch-multiple-data-from-database-once-then-stops-tp5774117p5774118.html S

Camel fetch multiple data from database once, then stops?

2015-11-19 Thread KatoneVi
Hello everyone, I used the search on this site to look for similar problems but failed to find it. Perhaps it is because I am asking it incorrectly? So currently, I have camel fetching data from my database... and then outputting it onto a text file. The table only has 3 rows, so it should end