> In fact, I tried the following which seemed to work > from("timer:httpRequestTrigger?repeatCount=1").to("http..
Great to hear that :) . > Isthere actually a real use case where from(http://...) makes sense? HTTP consumer is a polling one. It makes perfect sense to use it when you want to periodically scan HTTP address for the updates. > Whats are the reasons to prefer > from(...).enrich("http://...").to("file://...") > to > from(...).to("http://...").to("file://...") As far as I know, unless you don't specify aggregation strategy (what is possible in the case of 'enrich') these to notations works exactly in the same way. As far as I know :) . I personally prefer to use "enrich" as it explicitly refers to the EIP and is obvious even for non-Camel users. Using "double-to" may be confused with the multicast [1]. > For this question, RTFM would be a valid answeri guess...but maybe someone > could give a brief answer, please? > (as I didn't find an obvious reason on http://camel.apache.org/http.html) Indeed HTTP component documentation doesn't say how to use it as a polling consumer (i.e. from("http://...). I've added it to my personal backlog and will try to add this information to our documentation. Thanks for pointing this lack. If you find anything else unclear in Camel reference documentation - just drop us a line here on the mailing list. We promise to fix it :) . Best regards. [1] http://camel.apache.org/multicast.html -- Henryk Konsek http://henryk-konsek.blogspot.com