Apache camel Apache Camel CxfRsEndpoint性能调用设置触发调用两次

Apache camel Apache Camel CxfRsEndpoint性能调用设置触发调用两次,apache-camel,cxfrs,Apache Camel,Cxfrs,我有一个带有cxf端点的最小驼峰路由(在RouteBuilder#configure方法中): 问题是资源类的方法被调用了两次: 假设有一种“PersonService#post”方法: 它被调用两次:断点被命中两次,有效负载响应 { "id" : "id_from_client" } 是 这是预期的行为吗?如果是,是否有只执行一次方法的设置?这对我来说似乎是一个错误 Camel版本是2.16.2(maven:org.apache.Camel:Camel-cxf-transport:2

我有一个带有cxf端点的最小驼峰路由(在RouteBuilder#configure方法中):

问题是资源类的方法被调用了两次:

假设有一种“PersonService#post”方法:

它被调用两次:断点被命中两次,有效负载响应

{
    "id" : "id_from_client"
}

这是预期的行为吗?如果是,是否有只执行一次方法的设置?这对我来说似乎是一个错误

Camel版本是2.16.2(maven:org.apache.Camel:Camel-cxf-transport:2.16.2)
CXF版本是3.1.4(org.apache.CXF:CXF-rt-transports-http-jetty:3.1.4)

FWIW,我更改了配置,添加了“synchronous=true”选项和“performInvocation=true”,双重调用消失了。我不确定这是否是它应该表现出来的,但现在它似乎是这样运作的

<camel:from uri="cxfrs:bean:rsServer performInvocation=true&amp;synchronous=true" />


FWIW,我遇到了完全相同的问题。如果我找到任何解决方案,我会在这里更新。我想看起来不错。只有在同步路由上,系统才能知道以前经过的交换机的任何信息。异步路由应该是无状态的。至少我能理解。我很想在文档中找到一些链接。
{
    "id" : "id_from_client"
}
{
  "id": "id_from_client_PersonService#post_PersonService#post"
}
<camel:from uri="cxfrs:bean:rsServer performInvocation=true&amp;synchronous=true" />