Reputation: 5867
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?
Upvotes: 4
Views: 2486
Reputation: 3291
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.
Upvotes: 4