骆驼:在activemq消息中检索对象 [英] Camel: retrieving object in activemq message
本文介绍了骆驼:在activemq消息中检索对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在骆驼路线过程中将对象放入消息中.
Is there a way to put object in message in camel route process.
让我说一条路线
from("direct:send")
.process(queueProcessor)
.to(activemqEndPoint)
并且在queueProcessor中,我将一个对象放入交换器中,
and in the queueProcessor i am putting an object in the exchange,
现在,我有一个侦听器,它可以监听activemqEndPoint(queue)
Now, I have a listener which listens to activemqEndPoint(queue)
public void onMessage(Message message) {
try {
//here i want to get the message i set it in the exchange
}
有帮助吗??提前致谢
推荐答案
尝试一下对我有用
from("direct:send")
.process(queueProcessor)
.to(parallelQueue + "?jmsMessageType=Object")
这篇关于骆驼:在activemq消息中检索对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文