ActiveMQ的骆驼消息 [英] ActiveMQ Camel messages

查看:1274
本文介绍了ActiveMQ的骆驼消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试部署使用的ActiveMQ和骆驼的应用程序,当我strating我的Tomcat服务器我正在控制台上的所有可疑邮件,即使有在塔伊经纪人的队列中没有消息,该错误消息。

I am trying to deploy app using activemq and camel, when i am strating my tomcat server I am getting all suspicious messages on console, even when there are no messages in the queue on tye broker , the error messages are

09:56:27.769 [Camel (eventProcessorCamelContext) thread #2 - JmsConsumer[events]] DEBUG o.a.activemq.ActiveMQMessageConsumer - remove: ID:LT-HP-2012907-53495-1360230974137-0:7:1:5, lastDeliveredSequenceId:0
09:56:27.769 [Camel (eventProcessorCamelContext) thread #2 - JmsConsumer[events]] DEBUG org.apache.activemq.ActiveMQSession - ID:LT-HP-xxxxxxxxxx-0:7:1 Transaction Commit :null
09:56:27.769 [Camel (eventProcessorCamelContext) thread #2 - JmsConsumer[events]] DEBUG org.apache.activemq.ActiveMQSession - ID:LT-HP-xxxxxxxx:1 Transaction Rollback
09:56:27.770 [Camel (eventProcessorCamelContext) thread #1 - JmsConsumer[events]] DEBUG o.a.activemq.ActiveMQMessageConsumer - remove: ID:LT-HP-2012907-53495-1360230974137-0:6:1:5, lastDeliveredSequenceId:0
09:56:27.770 [Camel (eventProcessorCamelContext) thread #1 - JmsConsumer[events]] DEBUG org.apache.activemq.ActiveMQSession - ID:LT-HP-xxxxxxxxx:6:1 Transaction Commit :null
09:56:27.770 [Camel (eventProcessorCamelContext) thread #1 - JmsConsumer[events]] DEBUG org.apache.activemq.ActiveMQSession - ID:LT-HP-xxxxxxxxx:6:1 Transaction Rollback

事务提交:空事务回滚的 * 的**你可以在调试信息看到,有在队列中没有消息,因为交易还我得到调试消息承诺:零和事务回滚。难道正常吗?为什么ActiveMQ是试图在没有消息的提交无效
这是expecetd还是我做错了什么。

Transaction Commit :null Transaction Rollback ***As you can see in the debug message, there are no messages on the queue, still I am getting debug message as Transaction commit:null and Transaction Rollback. Is it expected? Why ActiveMQ is trying to commit null when there are no messages Is this expecetd or am i doing anything wrong

推荐答案

这就是详细的日志记录。

Thats verbose logging.

骆驼是使用Spring DMLC。

Camel is using Spring DMLC when reading messages transactional from ActiveMQ.

什么是本质上是做的是这样的(伪code,超过简体):

What's essentially is done is something like this (psuedo code, over simplified):

begin transaction()
receive()
.. handle message 
commit()

关闭调试日志记录,如果这困扰你。

Turn off debug logging if this bothers you.

这篇关于ActiveMQ的骆驼消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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