Apache Camel将多种资源组合成一条消息

时间:2019-11-20 07:47:07

标签: spring-boot apache-camel amqp

我想问一下,我可以将多个来源(队列)组合成一条消息吗?

例如,我有下面的json

{"id":"123","name":"tes"} from testqueue
and {"id":"111","name":"testing"} from testqueue2, and {"name":"test3","address":"street street"} from another queue.

我想合并为

{
"id":"111",
"name":"testing" ,
"name":"test3",
"address":"street street",
"id":"123",
"name":"tes"
}

到目前为止,我已经尝试使用xml pollenrich和direct。但失败了。有什么办法吗?谢谢

0 个答案:

没有答案