camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frankiboy <mail.to.fra...@gmail.com>
Subject how to get .Choice().When to continue ?
Date Wed, 30 Jul 2014 13:11:13 GMT
The 3 lines in Bold newer get Executed, how to get .Choice().When to continue
?


Route:

from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() 
       .onException(Exception.class).process(new LogError()).end() 
       .multicast() 
       .bean(AddIpBean.class) 
       .to("direct:channel1", "direct:channel2"); 
       
       from("direct:channel1")
       .bean(SetRoutingKey.class)
       .choice()
       .when(header(ROUTING_KEY).contains(ROUTING_HREG_BD)).setHeader("BD",
constant("YES"))
       .when(header(ROUTING_KEY).contains(ROUTING_HREG_BEC)).setHeader("BD",
constant("YES"))
       .when(header(ROUTING_KEY).contains(ROUTING_HREG_SDC)).setHeader("BD",
constant("YES"))
     *  .setHeader("JMS_IBM_Format", constant("MQSTR"))
       .bean(LogMq.class, "logStart")
       .inOnly("activemq:topic:HUB_TOP01");*       
       from("direct:channel2")
       .recipientList().method(Util.class, "getEndpoint");



Frank 



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-get-Choice-When-to-continue-tp5754682.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message