首页 > 解决方案 > 如何解决“警告:AMQ212054:目标地址 = 考试被阻止”

问题描述

我对 Spring JMS 完全陌生。我正在使用 ActiveMQ Artemis 运行 Spring JMS 简单聊天应用程序。打电话后send()我得到这个:

WARN: AMQ212054: Destination address=examp is blocked. If the system is configured to block make sure you consume messages on this configuration.

之后的代码send()没有被执行。请帮忙。

标签: spring-jmsactivemq-artemis

解决方案


代理可能会阻止将消息发送到某个地址的原因有多种:

  1. 如果<address-full-policy>BLOCK且地址已达到配置的<max-size-bytes>
  2. 如果到达所有地址的<address-full-policy>isBLOCK和 the <global-max-size>
  3. 如果<max-disk-usage>达到。

我的猜测是你正在打#3。因此,我建议您将max-disk-usagefrom 90(即默认值)增加到100,例如:

<max-disk-usage>100</max-disk-usage>

推荐阅读