如何在死信队列(AMQ)中应用到期消息

时间:2018-09-21 02:25:12

标签: apache-camel jms activemq

<policyEntry queue="Activemq.DLQ">
 <deadLetterStrategy>
 <sharedDeadLetterStrategy  processExpired="false" expiration="300000"/>
</deadLetterStrategy>
 </policyEntry>

上面是我的amq.xml更改。当我应用此更改时,此代理无法启动很容易地说未运行。我的意图是使dlq中的所有消息都过期,并自动丢弃它。感谢您的任何帮助,以下是amq log的错误

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_45]
        at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_45]
        at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.10.0]
        at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.10.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_45]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_45]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_45]
        at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_45]
        at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)[wrapper.jar:3.2.3]
        at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]

0 个答案:

没有答案