Hi Claus,

I followed you suggestion, but seems i did not get reply , below is my route
and RestPRocessor

<route id="restroute" streamCache="true" >
            <from uri="cxfrs://bean://rsServerSecure" />
            <to uri="bean:restprocessor" />
        </route>


public class RESTResourceProcessor implements Processor {
    private static final Logger log =
LoggerFactory.getLogger(RESTResourceProcessor.class);
 
    @Override
    public void process(Exchange exchng) throws Exception {
         
        Object obj=exchng.getIn().getBody();
        log.info("RESTResourceProcessor process +"
+obj.getClass().getName());
        String xml = "<html><body>
Hello World!</body>
</html>";
        exchng.getIn().setBody(Response.status(200).entity(xml).build());
    }
}




--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-put-jaxrs-server-as-endpoint-in-route-from-tp5755249p5755268.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to