使用骆驼cxfrs和JAXRS服务器之间的差异 [英] Difference between using camel cxfrs and jaxrs server

查看:289
本文介绍了使用骆驼cxfrs和JAXRS服务器之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的xmlns:cxfrs =htt​​p://camel.apache.org/schema/cxf

xmlns:cxfrs="http://camel.apache.org/schema/cxf"

的xmlns:JAXRS =htt​​p://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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆