简体   繁体   English

Active MQ可重用策略似乎不起作用-通过URL配置定义

[英]Active MQ redelievery policy seems to be not working - defined through URL configuration

failover:(tcp://localhost:61616)?  jms.useAsyncSend=false&jms.redeliveryPolicy.redeliveryDelay=14400000")

I have defined the queue url as above, setting the redelivery delay to be 4 hours. 我已经如上定义了队列URL,将重新交付延迟设置为4小时。 But when the expected exception occurs, the messages are retried immediately 5 times and dequeued from the Queue. 但是,当发生预期的异常时,消息将立即重试5次并从队列中出队。 Any thoughts? 有什么想法吗?

Active MQ URL configuration doesnt seems to work correctly. Active MQ URL配置似乎无法正常工作。 So I got this working by setting the delivery delay in RedeliveryPolicy configuration in JMSConnectionFactory 所以我通过在JMSConnectionFactory的RedeliveryPolicy配置中设置传递延迟来完成此工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM