You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by magellings <ma...@qg.com> on 2010/02/25 18:24:09 UTC
NMS and camel delayer with header configuration
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&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.