Re the subject web page and this block of sample code found at the top of the
page.
from("jms:queue:order")
.choice()
.when().header("type").isEqualTo("widget").to("bean:widgetOrder")
.when().header("type").isEqualTo("wombat").to("bean:wombatOrder")
.otherwise()
.to("bean:miscOrder")
.end();
Is the proper syntax being used for the 'when' predicates? Shouldn't it be
like this?
.when(header("type").isEqualTo("widget")).to("bean:widgetOrder")
.when(header("type").isEqualTo("wombat")).to("bean:wombatOrder")
Thanks,
Joe
--
View this message in context:
http://www.nabble.com/camel.apache.org-predicate.html-tp23078145p23078145.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.