Camel CXF consumer with dataFormat=PAYLOAD or dataFormat=MESSAGE creates empty In message if received XML message is not valid
Issue
A Camel-CXF consumer configured to consume messsage from JMS transport and also using either dataFormat=PAYLOAD or dataFormat=MESSAGE creates an empty In message on the Camel exchange if the XML payload received is not well formed.
The CXF consumer endpoint is configured as
<cxf:cxfEndpoint id="TestEndpoint"
address="jms:queue:TEST?exchangePattern=InOnly&messageType=text"
serviceClass="...PortType">
<cxf:properties>
<entry key="dataFormat" value="PAYLOAD" />
</cxf:properties>
</cxf:cxfEndpoint>
and is used in a Camel consumer such as
<route id="bug" trace="true" streamCache="true">
<from uri="cxf:bean:TestEndpoint"/>
<log message="The body of the request is: ${body}" loggingLevel="INFO"/>
<to uri="log:com.mycompany.order?showStreams=true&showAll=true"/>
...
</route>
Environment
- JBoss Fuse 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
