camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Kalukiewicz" <roman.kalukiew...@gmail.com>
Subject Re: extract xml from URL and save to file
Date Wed, 26 Mar 2008 11:05:10 GMT
2008/3/25, James Strachan <james.strachan@gmail.com>:
>  I guess the biggest issue right now is if we did...
>
>  from("quartz://myGroup/myTimerName/0/0/12/*/*/$").to("http://foo.com/bar.xml").to("file://myDirectory/someName.xml");
>
>  then the HTTP endpoint would tend to do a POST not a GET as it would
>  be receiving a payload of the quartz event. I guess thats just a
>  limitation of the HTTP endpoint; we maybe need some way to enforce the
>  GET operation or something?

but this should work OK:

from("quartz://myGroup/myTimerName/0/0/12/*/*/$")
.setBody(constant(null))
.to("http://foo.com/bar.xml")
.to("file://myDirectory/someName.xml");

Romek

Mime
View raw message