4

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?

Manoj
  • 5,707
  • 19
  • 56
  • 86

1 Answers1

4

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.

Willem Jiang
  • 3,291
  • 1
  • 14
  • 14
  • Hi Willem, I'm still trying to understand the difference between these two. You mentioned that jaxrs:server is used to expose the REST services so that the methods inside the service classes can be called. However, I used the CXF-RS component by only configuring a jaxrs:server, and it did not invoke the methods inside the service classes. So, I'm still confused about the differences between these two.. – Ivan Gozali Jan 27 '14 at 18:15
  • Did you get the response from the CXFRS server? How can you tell the method in the service classes is not called ? – Willem Jiang Jan 29 '14 at 02:36
  • 1
    Yes, I'll ask this in a separate question so I can explain my question better. – Ivan Gozali Jan 29 '14 at 19:19