4
votes

xmlns:cxfrs="http://camel.apache.org/schema/cxf"

xmlns:jaxrs="http://cxf.apache.org/jaxrs"

I am trying to understand the cxfrs:server and JAXRS:Server in Apache Camel. How it is different?

1

1 Answers

3
votes

First, these two are used to configure the server.

But cxfrs:server is used to configure the server which is used by the camel-cxfrs to route the REST request to camel route, it doesn't invoke the resources classes instance method; jaxrs:server is used to expose the REST service which can accept the REST request and send response by invoke the resources classes instance that you configured.