camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meriem <mbenha...@gmail.com>
Subject Re: Problem with HTTP endpoint
Date Mon, 31 Dec 2012 15:41:17 GMT
Hi,
Thank you everybody for your help.
It's fine with files.
To execute a route once, I tried :
from("direct:start").to("http://www.google.com"), but it did not work, so I
used a timer that fire a message only once:
    
*from("timer://foo?repeatCount=1")*.to("http://www.google.com").setHeader(Exchange.FILE_NAME,
constant("report.txt")).to("file:target/messages/res");

It did work.
Thank you very much.

Best,
Meriem.




--
View this message in context: http://camel.465427.n5.nabble.com/Problem-with-HTTP-endpoint-tp5724441p5724751.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message