Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to periodically process some input using Apache Camel

I wonder if there is a way to make Camel do what I need which is as follows:

"Periodically read data from some source (let's say a file), do some processing on it and write it to some other place"

I figured out how to do all that minus the "periodically" part. I know how to trigger a route using Quartz or Timer. But when I use those the part is already taken so I can't change the body anymore.

Any advice?

like image 552
Matthias Hryniszak Avatar asked May 19 '26 21:05

Matthias Hryniszak


1 Answers

You can use scheduled route policy as well http://camel.apache.org/scheduledroutepolicy.html

like image 115
Claus Ibsen Avatar answered May 22 '26 12:05

Claus Ibsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!