camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Camillo <alancami...@gmail.com>
Subject Re: Problem with HTTP endpoint
Date Fri, 28 Dec 2012 15:52:41 GMT
Hello Meriem!

Try Camel Simple Language for this issue.:
http://camel.apache.org/file-language.html

You need something like this:
from("http://google.com").to("file:target/messages?fileName=ID-MERIEM-
${in.header.someID}-${in.header.someParameter}.txt");

Good luck!
Alan Camillo

On Sun, Dec 23, 2012 at 1:38 PM, Meriem <mbenhaddi@gmail.com> wrote:

> Hi,
> It was effectively the bad version of camel-http.jar, thanks for the reply.
> I switched to camel-http-2.9.0.jar and it worked.
> But it continue to pull data from the http endpoint (www.google.com)
> endlessly, so with this code :
>
> from("direct:start").to("http://google.com").to("file:target/message");


> it continue to create files where it puts the result of the request.
>
> How can I tell it to pull the data only one time, and how to specify a name
> for the created file; in fact, the created file's name is something like:
> ID-MERIEM-54264-1356275725253-0-5.
>
> Thank you very much for your help.
> Best,
> Meriem.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Problem-with-HTTP-endpoint-tp5724441p5724565.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message