camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frankiboy <mail.to.fra...@gmail.com>
Subject Re: Same messages to 2 endpoints ?
Date Wed, 30 Jul 2014 12:54:53 GMT
Thanks , that was the way to do it 

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



--
View this message in context: http://camel.465427.n5.nabble.com/Same-messages-to-2-endpoints-tp5754637p5754646.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message