Thanks Aaron!
I got this to work when testing:
<route>
<from uri="activemq:queue:PersistMessage" />
<delayer>
<simple>header.JMSTimestamp</simple>
<to uri="activemq:queue:TimedPersistMessage" />
<delay>60000</delay>
</delayer>
</route>
I don't know why but when I tried specifying uri="seda:TimedPersistMessage"
I couldn't get anything to actually deliver properly - but as soon as I put
in the activemq:queue:TimedPersistMessage it worked great...also the delay
was a missing tidbit for me.
Aaron Crickenberger wrote:
>
>
> On Jan 14, 2008, at 9:19 PM, Er1c wrote:
>> What's the Spring XML equivalent of the DSL:
>> from("seda:a").delayer(header("JMSTimestamp"),
>> 3000).to("mock:result"); ?
>
> I think it's this:
>
> <route>
> <from uri="seda:a">
> <delayer>
> <simple>header.JMSTimestamp</simple>
> <to uri="mock:result" />
> <delay>3000</delay>
> </delayer>
> </route>
>
> - aaron
>
>
--
View this message in context:
http://www.nabble.com/Spring-XML-for-the-Delayer-Design-Pattern--tp14826213s22882p14864498.html
Sent from the Camel - Users mailing list archive at Nabble.com.