camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: route from http to file, with Java DSL, howto?
Date Tue, 23 Mar 2010 07:23:45 GMT
On Tue, Mar 23, 2010 at 8:16 AM, Kameltreiber
<> wrote:
> Hi,
> i just try to write a xml result from a http request to a file.
> I'd like to use Java DSL
> at the moment it looks like this
>  from("")
>        .setHeader(Exchange.FILE_NAME, constant("report.xml"))
>        .to("file:target/reports");
> I alreday checked the result, and there is one, but the report.xml never
> gets created.
> What am i doing wrong?

What do you want? is a HTTP service you want to expose yourself?
Or do you want to poll data from an external HTTP service every X time?

If its the former then you gotta use Jetty in the from to let it be
used as the HTTP server.


If the latter you have to use a scheduler such as Timer or Quartz to
trigger the poll.

> Regards...
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Author of Camel in Action:
Open Source Integration:

View raw message