问题描述
xmlns:cxfrs="http://camel.apache.org/schema/cxf"
xmlns:cxfrs="http://camel.apache.org/schema/cxf"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
我试图了解 Apache Camel 中的 cxfrs:server 和 JAXRS:Server.怎么不一样?
I am trying to understand the cxfrs:server and JAXRS:Server in Apache Camel. How it is different?
推荐答案
首先,这两个是用来配置服务器的.
First, these two are used to configure the server.
但是cxfrs:server 是用来配置camel-cxfrs 用来将REST 请求路由到camel 路由的服务器,它不调用资源类实例方法;jaxrs:server 用于暴露 REST 服务,该服务可以接受 REST 请求并通过调用您配置的资源类实例发送响应.
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.
这篇关于使用camel cxfrs和jaxrs服务器的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!