【发布时间】:2017-09-07 00:03:38
【问题描述】:
我已经定义了一个Route,它可以毫无问题地使用队列中的消息,现在我正在尝试使用已经在队列中12小时的消息,我想到了使用selector ,但不知道如何将其与 JMSTimestamp 一起使用以满足 12 小时标准。
这是Route:
<route id="INBOUND.RECEIVE.IN">
<from
uri="activemq:queue:QXL.INBOUND.RECEIVE.IN?selector=JMSTimestamp%3D${date.time}&concurrentConsumers=10&destination.consumer.prefetchSize=0&deliveryPersistent=true&username=admin01&password=001!admin01001!" />
<pipeline>
<bean method="inboundReceive" ref="logipalServices"/>
</pipeline>
</route>
这是日期豆
<bean id="date" class="java.util.Date" scope="prototype"/>
【问题讨论】:
标签: apache-camel activemq