Manoj
Manoj

Reputation: 5867

Difference between using camel cxfrs and jaxrs server

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

Answers (1)

Willem Jiang
Willem Jiang

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

Related Questions