WebSphereLiberty wasJmsServer死信队列
有人能给我介绍一些关于使用liberty嵌入式JMS消息传递提供程序在WLS liberty profile 16.0.0.2版上设置DLQ的参考资料吗? 我有一个配置了SpringJMS监听器的队列,当消息监听器抛出RuntimeException时,消息应该在几次重试后进入处理信件队列WebSphereLiberty wasJmsServer死信队列,websphere,websphere-liberty,spring-jms,open-liberty,Websphere,Websphere Liberty,Spring Jms,Open Liberty,有人能给我介绍一些关于使用liberty嵌入式JMS消息传递提供程序在WLS liberty profile 16.0.0.2版上设置DLQ的参考资料吗? 我有一个配置了SpringJMS监听器的队列,当消息监听器抛出RuntimeException时,消息应该在几次重试后进入处理信件队列 谢谢。使用wasJmsServer功能,术语是异常目标。这可以配置为队列对象上的属性。这引用了另一个队列的名称。例如: <messagingEngine> <queue id="dl
谢谢。使用wasJmsServer功能,术语是异常目标。这可以配置为队列对象上的属性。这引用了另一个队列的名称。例如:
<messagingEngine>
<queue id="dlq" />
<queue id="myQueue" exceptionDestination="dlq" />
</messagingEngine>
然后,您应该将所有“坏”消息都放在默认队列中。默认情况下,只有在传递失败5次时,才会将消息发送到异常目标。这可以用maxRedeliveryCount
设置覆盖:
<messagingEngine>
<queue id="_SYSTEM.Exception.Destination" />
<queue id="myQueue" maxRedeliveryCount="2"/>
</messagingEngine>
此配置可在中找到。您没有提到正在使用哪个JMS提供程序。是那个吗?没错。我会更新这个问题。谢谢
<messagingEngine>
<queue id="_SYSTEM.Exception.Destination" />
<queue id="myQueue" maxRedeliveryCount="2"/>
</messagingEngine>