activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From magellings <mark.gelli...@qg.com>
Subject NMS and camel delayer with header configuration
Date Thu, 25 Feb 2010 17:24:09 GMT

Hi.

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="http://activemq.apache.org/camel/schema/spring">
 
     <!-- You can use a <package> element for each root package to search
for Java routes -->
     <!--<package>org.foo.bar</package>-->
 
     <!-- You can use Spring XML syntax to define the routes here using the
<route> element -->
     
     <route>
       <from uri="activemq:delayedSyncQueue"/>
       <delayer>
         <simple>header.delayme</simple>
         <to uri="activemq:syncQueue21"/>
       </delayer>
     </route>

   </camelContext>
 
   <!--
     ** Lets configure some Camel endpoints
     **
     ** http://activemq.apache.org/camel/components.html
     -->
 
   <!-- 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}"/>
       </bean>
     </property>
   </bean>
-- 
View this message in context: http://old.nabble.com/NMS-and-camel-delayer-with-header-configuration-tp27714485p27714485.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message