activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From magellings <>
Subject Camel Delayer - <simple> expression - with ActiveMQ NMS provider
Date Thu, 25 Feb 2010 14:42:28 GMT


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"
     <!-- You can use a <package> element for each root package to search
for Java routes -->
     <!-- You can use Spring XML syntax to define the routes here using the
<route> element -->
       <from uri="activemq:delayedSyncQueue"/>
         <to uri="activemq:syncQueue21"/>

     ** Lets configure some Camel endpoints
   <!-- configure the camel activemq component to use the current broker -->
   <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}"/>
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message