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");
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");