I want to write the header information to MQ.
LogMq class returns a string "Hello world"
My route looks like this:
from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching()
.onException(Exception.class).process(new LogError()).end()
.bean(LogMq.class, "logStart").to("activemq:topic:HUB_TOP01")
.bean(AddIpBean.class).bean(SetRoutingKey.class).choice()
.when(header(ROUTING_KEY).contains(ROUTING_BD)).to("bdws")
.when(header(ROUTING_KEY).contains(ROUTING_BEC)).to("becws")
.when(header(ROUTING_KEY).contains(ROUTING_SDC)).to("sdcws").otherwise().to("file:/fja/")
;
Get this exception " Exception occurred during execution on the exchange"
when executing
.bean(LogMq.class, "logStart").to("activemq:topic:HUB_TOP01")
How to print alle the header information to MQ ?
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-print-alle-the-header-information-to-MQ-in-the-Route-get-Exception-tp5753197.html
Sent from the Camel - Users mailing list archive at Nabble.com.