为什么ActiveMQ使用者恢复到拉模式而不是预取模式

为什么ActiveMQ使用者恢复到拉模式而不是预取模式,activemq,nms,apache-nms,Activemq,Nms,Apache Nms,我最近升级到NMS ActiveMQ 1.5.2,当我重新启动代理时,连接和使用者都会恢复,但它们会恢复到“拉”模式,这意味着代理不会自动向它们发送消息。这不是以前版本的表现。我需要的是让它恢复到原来的状态,即预回迁1000次。 我想我一定是缺少故障转移URL或类似的设置 这里有人知道我能做什么吗 我的堆栈是: AMQ Broker 5.4.2 Spring.NET 1.3.2 Apache.NMS 1.5.0 Apache.NMS.ActiveMQ 1.5.2 (all the latest

我最近升级到NMS ActiveMQ 1.5.2,当我重新启动代理时,连接和使用者都会恢复,但它们会恢复到“拉”模式,这意味着代理不会自动向它们发送消息。这不是以前版本的表现。我需要的是让它恢复到原来的状态,即预回迁1000次。 我想我一定是缺少故障转移URL或类似的设置

这里有人知道我能做什么吗

我的堆栈是:

AMQ Broker 5.4.2
Spring.NET 1.3.2
Apache.NMS 1.5.0
Apache.NMS.ActiveMQ 1.5.2
(all the latest releases)
以下是我在重新启动代理时看到的消费者日志条目:

restore consumer: ID:csi-dul-516m-6334-634583598187658753-1:0:-1:1 in pull mode pending recovery, overriding prefetch: 1000
restore consumer: ID:csi-dul-516m-6334-634583598187658753-1:0:-1:1
restore consumer: ID:csi-dul-516m-6334-634583598187658753-1:0:1:1 in pull mode pending    
recovery, overriding prefetch: 1000
restore consumer: ID:csi-dul-516m-6334-634583598187658753-1:0:1:1
restore consumer: ID:csi-dul-516m-6334-634583598187658753-1:0:2:1 in pull mode pending    
recovery, overriding prefetch: 1000
restore consumer: ID:csi-dul-516m-6334-634583598187658753-1:0:2:1
Sending queued commands...
Transport has resumed normal operation.
Connection established
Successfully reconnected to: tcp://localhost:61616/

我升级到Apache.NMS 1.5.3,它纠正了这种行为。因此,1.5.2存在缺陷,可能不应该使用。

更新:我还打开了一个示例演示应用程序,以防任何人想要遵循以下步骤: