使用骆驼cxfrs和JAXRS服务器之间的差异 [英] Difference between using camel cxfrs and jaxrs server
问题描述
的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"
我想了解cxfrs:服务器和JAXRS:服务器在Apache的骆驼。它是如何不同?
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:服务器用于配置所使用的骆驼cxfrs路由的REST请求骆驼路由服务器,它不会调用资源类的实例方法; JAXRS:服务器被用于公开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.
这篇关于使用骆驼cxfrs和JAXRS服务器之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!