camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Leuthold <michael.leuth...@gmail.com>
Subject Re: Same messages to 2 endpoints ?
Date Wed, 30 Jul 2014 12:23:08 GMT
I think you'll need to put a mutlicast() before calling the endpoints
as suggested - otherwise the direct Endpoints will be called in the
order, passing the Out from the first as the In to the other.

See http://camel.apache.org/multicast.html for further reference.



On Wed, Jul 30, 2014 at 12:53 PM, Frankiboy <mail.to.frankj@gmail.com> wrote:
>
>       This is my routes:
>
>        from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching()
>       .onException(Exception.class).process(new LogError()).end()
>       .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");
>
> I newer get to my AddIpBean.class, i get call inOnly, the MQ log is OK , bug
> the (LogMq.class, "logStart")class returns a String "Frank was here from
> LogMq" and then this exception:
>
>  javax.xml.ws.soap.SOAPFaultException: Exception occurred during execution
> on the exchange: Exchange[Message: Frank was here from LogMq]
>
> I want to start channel1 and channel2 with same input.....
>
> Frank
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Same-messages-to-2-endpoints-tp5754637.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message