本文介绍了为什么Active MQ Consumer即使在线仍未收到任何消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 已创建消费者。

  2. 已创建生产者。

  3. 已发送消息。

  4. Msg进入队列。

  5. 但是Msg并未出队(即使有一个在线上有
    的消费者)。

  1. Consumer Created.
  2. Producer created.
  3. Msg Sent.
  4. Msg Enqueued in the Queue.
  5. But Msg not dequeued (even though there is a consumer online forthat queue).

系统上没有记录错误。
那么可能是什么原因呢?

There is no error logged on the system.So What could be the reason for it?

推荐答案

如果您还没有调用connection.start(),那么您的消费者不会收到任何东西。如果您有,但仍然无法正常工作,那么我们需要查看一些代码以帮助弄清楚。

If you haven't called connection.start() then your consumer won't receive anything. If you have and its still not working then we'd need to see some code in order to help figure it out.

这篇关于为什么Active MQ Consumer即使在线仍未收到任何消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 10:43
查看更多