Camel Delayer - <simple> expression - with ActiveMQ NMS provider

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Camel Delayer - <simple> expression - with ActiveMQ NMS provider

This post was updated on .

I'm trying to use the camel delayer with ActiveMQ 5.2 with the NMS ActiveMQ provider.  I can get the delayer to work when using the static delay method (e.g. <delay>10000</delay>) but not when using the <simple> expression syntax.  I do not know what the precise value should be for the delayme header.  Should it be epoch local time, epoch GMT, not epoch/something else.  

Does anyone know how to get this to work?

<camelContext id="camel" xmlns="">
       <from uri="activemq:delayedSyncQueue"/>
         <to uri="activemq:syncQueue21"/>

   <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" >
     <property name="connectionFactory">
       <bean class="org.apache.activemq.ActiveMQConnectionFactory">
         <property name="brokerURL" value="vm://localhost?create=false&amp;waitForStart=10000" />
         <property name="userName" value="${activemq.username}"/>
         <property name="password" value="${activemq.password}"/>