【发布时间】:2020-07-31 18:45:53
【问题描述】:
将 Camunda 与 Apache Camel Community Edition 集成,并面临在服务任务二中访问时,上图中的服务任务一中设置的 Exchange 属性被丢弃的问题。两个服务任务都在调用${camel.sendTo('direct:one')} 和${camel.sendTo('direct:two')} 显然,似乎只有在直接端点之间路由时才会保留交换属性,但在这种情况下,属性会被删除。
Route1 和 Route2
@Override
public void configure() throws Exception {
from("direct:one")
.bean(SomeClass.class, "someMethod")
.to("http4://localhost:8002/one")
.bean(SomeClass.class, "someMethod")
}
@Override
public void configure() throws Exception {
from("direct:two")
.bean(SomeClass.class, "someMethod")
.to("http4://localhost:8002/two")
.bean(SomeClass.class, "someMethod")
}
【问题讨论】:
标签: apache-camel camunda