L.S.,

For this scenario, you should think off your HTTP request as a Camel
Exchange.  Your request is sent through the Camel route as an Exchange and
whatever the content is at the end of the route will be sent back as the
HTTP response.

That means you need the content enricher pattern to enrich the body of the
exchange with the response you want to send back.  You can either add a
plain processor or bean that reads the file and add the content to the
exchange.  Or else you can use the pollEnrich DSL to leverage Camel's file
component to do that for you.  You can find an example for either approach
on http://camel.apache.org/content-enricher.html


Regards,

Gert Vanthienen

On Fri, Feb 22, 2013 at 1:14 PM, Marcel <marcel.friedm...@de.markant.com>wrote:

> Hi,
>
> i am trying to setup an Camel-Route which consumes HTTP-GETs. Based on the
> requested URIs a file on the local file system should be deliverd.
>
> Directory-Structure:
> -esb
> --done
> ---message3.xml
>
> URL: http://localhost:12000/done/message3.xml
>
> i tested the following camel route - unfortunatly it didnt work - camel
> tries to write a file instead of reading an file.:
>
>         <from uri="jetty:http://localhost:12000/"/>
>         <to uri="file://D:/esb/"/>
>
> How can i achieve this scenario with camel/servicemix?
> Any help would be appreciated.
>
> Regards
> Marcel
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/How-to-configure-a-file-reading-webserver-jetty-tp5715920.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Reply via email to