because there is a "dispatch window" which the message is in flight
and not at the client yet. which is why receiveNoWait() does not have
to return a message. if the message has made it to the client's
buffer, then receiveNoWait() would return the message. but if it's in
flight, the client will not see it yet. this is the "push" model that
message brokers usually use. if using activemq, maybe you can set your
prefetch to 0 to force the client to pull from the broker.


On Mon, Nov 18, 2013 at 6:00 AM, cristisor <cristisor...@yahoo.com> wrote:
> Thank you for pointing that out for me, now the test is working. Still, I
> find it weird that the consumer is not retrieving anything even though
> JConsole shows that the QueueSize > 0.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/onCompletion-not-triggerd-in-testing-tp5743163p5743439.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to