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.