On 11/16/10 4:49 AM, Krystian wrote:

Hi,

I am routing messages more than once and because of that, when last consumer
gets the message and sends back a response I am getting nothing in the first
producer. Sounds a bit complicated but there we go:
I've got two routes:

from("activemq:entryQueue").choice()
                 .when().method("my.WhenBean",
"check").to("activemq:detourQueue")
                 .otherwise().to("activemq:actionQueue")

from("activemq:detourQueue").delay().expression(bean(my.DelayerBean.class,
"sendAtTime")).asyncDelayed().to("activemq:entryQueue")

I am testing a scenario, where a message goes 5 times through the
detourQueue and then goes to actionQueue.
On actionQueue I've got a POJO consumer who will just send a response back.
Unfortunately producer which sent the message to the entryQueue first time
is not getting it.
When the message goes straight from entryQueue to actionQueue everything is
fine.

Any info on how to get this working?

I don't think the delay route can get the response back, so please make sure you are just send the InOnly message, and put the response message into other response queue.

Thanks,
Krystian


--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to