如何解决“警告:AMQ212054:目标地址=示例被阻止”

Dar*_*pan 5 spring-jms activemq-artemis

我对 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.
Run Code Online (Sandbox Code Playgroud)

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

Jus*_*ram 9

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

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

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

<max-disk-usage>100</max-disk-usage>
Run Code Online (Sandbox Code Playgroud)