This content has been marked as final.
Show 3 replies
-
1. Re: Dynamic Router + Bean + ActiveMQ
njiang Nov 24, 2011 11:19 PM (in response to jamie3_james.archibald)I just commit a Dynamic Router test which based on your test case, you need to tell your dynamic route to stop routing by return null string.
You can find the test here
Willem
-
2. Re: Dynamic Router + Bean + ActiveMQ
davsclaus Nov 25, 2011 2:48 AM (in response to jamie3_james.archibald)If you just want to invoke your bean once, to compute where to route the message next, then use the routing slip EIP.
http://fusesource.com/docs/router/2.8/eip/MsgRout-RoutingSlip.html
The dynamic router, is kinda like a while loop, that keeps being invoked, until null is returned. Where as routing slip, is invoked once.
-
3. Re: Dynamic Router + Bean + ActiveMQ
jamie3_james.archibald Nov 25, 2011 7:29 AM (in response to davsclaus)Routing slip solved my problem.
Thanks!
Edited by: jamie3 on Nov 25, 2011 12:29 PM