Hi

I think the delayer in Camel 2.x is a bit different than 1.x which
kinda magically could use the timestuff from the JMS message. (eg it
was tied a bit into the JMS world).

So you may have to "compute" the delay a bit differently in 2.x than 1.x.


On Sat, Nov 6, 2010 at 11:45 AM, Krystian <[email protected]> wrote:
>
> Hi,
>
> Thanks for the answer, however I got there without using concurrent
> consumers.
> 2 years ago I was doing something ... well ... similar in a way.
> Anyway... I am using a method call during delay [1] and in my bean I check
> the difference between current time and timestamp on the message and delay
> for as long as it takes to reach the DELAY I want it to be.
> Since all messages are to be delayed by the same amount of time, there's no
> way I will get a message which is to be delayed for longer than next message
> in the line.
> Worst case scenario:
> I get two messages at the same time.
> First one is delayed by DELAY, next one is delayed by 0.
>
> Thanks,
> Krystian
>
> [1]
> from("activemq:redeliveryQueue").delay().expression(bean(DelayerBean.class,
> "sendAtTime")).to("activemq:testQueue")
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Delayer-and-asyncDelayed-how-to-delay-asynchronously-tp3252456p3252973.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to