Ok, after toying around with it I realized that I messed up the uri for the
cxfrs endpoint. I have it working now. I would still be interested in seeing
the route that send the request via the http endpoint, just to educate
myself more.

Thank you for all the help. The final route ends up looking like this:

    <route>
        <from uri="jetty:http://localhost:8888/MetricsEndpoint"/>
        <convertBodyTo type="String" />
        <removeHeaders pattern="*" />
        <setHeader
headerName="Content-Type"><constant>application/json</constant></setHeader>     
   
        <to uri="cxfrs:http://localhost:5477/MetricsService/";
pattern="InOnly"/>
    </route>

--
View this message in context: 
http://camel.465427.n5.nabble.com/HOW-TO-Jetty-JSON-and-Restful-Services-tp5713702p5713738.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to