My first endpoint is the recipientList, then i want to call LogMq.class , and
send a string back and go to my second endpoint activemq..
What is wrong here:
I tryed this, but get exception:
from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching()
.multicast()
.onException(Exception.class).process(new LogError()).end()
.bean(AddIpBean.class)
.recipientList().method(Util.class, "getEndpoint")
.filter().method(LogMq.class, "logStart")
.to("activemq:topic:HUB_TOP01?selector=BD='YES'");
ankConnectHub_war: org.apache.camel.RuntimeCamelException:
java.lang.IllegalArgumentException: The output must be added as top-level on
the route. Try moving OnException[[class java.lang.Exception] -> []] to the
top of route.
--
View this message in context:
http://camel.465427.n5.nabble.com/Failed-to-start-route-route2-because-of-Multiple-consumers-for-the-same-endpoint-is-not-allowed-tp5754511p5754526.html
Sent from the Camel - Users mailing list archive at Nabble.com.