Hi
I just checked the wiki page for the jetty component and I must confess,
I would not have understood how to use it from the documentation there.
Your example was very helpfull. I added it to the wiki page of the jetty
component.
Greetings
Christian
Claus Ibsen schrieb:
Hi
Ah the issue is that the Jetty component is an EventDrivenConsumer and not
Scheduled. So you have to trigger the event yourself to start the event in
jetty.
Eg:
from("timer://foo?fixedRate=true&delay=0&period=10000").to("jetty:http://www.google.com").setHeader(FileComponent.HEADER_FILE_NAME,
"message.txt").to("file:target/hello");
This will invoke the google homepage every 10th second and store it as a file.
http://activemq.apache.org/camel/event-driven-consumer.html
Med venlig hilsen
Claus Ibsen