On 4/18/07, dr.jeff <[EMAIL PROTECTED]> wrote:
Although there are a number of ways to fork routes (Recipient List, Content
Based Router) there doesn't seem to be any way to join them back together
again.
The naive approach of taking two routes:
from("queue:a").filter(header("foo").isEqualTo("bar")).to("queue:b");
from("queue:a").filter(header("bar").isEqualTo("cheese")).to("queue:c");
and putting then together like this:
from("queue:b").to("queue:d");
from("queue:c").to("queue:d");
does not work.
Am I missing something?
No not at all - it was just an effect of the previous bug in choice()
that you were hitting.
I've just created a test case demonstrating the above works
(JoinRoutesTest in camel-core) and its looking good.
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/JoinRoutesTest.java?revision=530203&view=markup
--
James
-------
http://radio.weblogs.com/0112098/