I have this 3 routes, now the input from channel3 gets back to the client i
want the channel2 reply back to the client, any ideas out there ? 



from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() 
      .bean(AddIpBean.class) 
      .bean(SetRoutingKey.class) 
      .bean(Util.class, "setMiljo") 
      .multicast() 
      .to("direct:channel1", "direct:channel2","direct:channel3");   
  
       from("direct:channel1") 
      .setHeader(HubConstants.LOGSTATE.getValue(),
constant(HubConstants.MQSTART.getValue()))
       .bean(Mq.class, "mqHeaders") 
      .bean(Mq.class, "logStart") 
      .choice() 
      .when(header(HubConstants.MILJO.getValue()).contains("U")) 
      .inOnly("activemqudv:topic:HUB_TOP01").otherwise() 
      .inOnly("activemq:topic:HUB_TOP01"); 
              
       from("direct:channel2") 
      .recipientList().method(Util.class, "getEndpoint"); 
        
       from("direct:channel3") 
       .setHeader(HubConstants.LOGSTATE.getValue(),
constant(HubConstants.MQSLUT.getValue()))
        .bean(Mq.class, "mqHeaders") 
       .bean(Mq.class, "logStart") 
       .choice() 
       .when(header(HubConstants.MILJO.getValue()).contains("U")) 
       .inOnly("activemqudv:topic:HUB_TOP01").otherwise() 
       .inOnly("activemq:topic:HUB_TOP01"); 





--
View this message in context: 
http://camel.465427.n5.nabble.com/3-Routes-how-to-get-the-second-routes-reply-back-to-the-client-tp5754933.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to