camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From unmarshall <>
Subject CfxBinding places custom headers at different places
Date Mon, 24 Jan 2011 09:49:22 GMT


I am trying to set custom headers on a camel message. Now when this message
gets converted to Cxf message and becomes a part of the CxfExchange then the
custom headers are put into the Cxf message depending on the DataFormat

For Payload the headers are placed under PROTOCOL_HEADERS
For POJO i guess it is placed under SOAP headers
For Message headers i guess the message is a SOAP message so it should go as
part of the SOAP header (not sure).

The point is that the extraction of headers during the invocation of the CXF
interceptor chain becomes then coupled with the DataFormat and makes it
unnecessarily complex.

This is not the case when custom properties are added to the Camel exchange.
All custom properties then available under INVOCATION_CONTEXT /
REQUEST_CONTEXT and that behavior is common and not dependent on the
DataFormat of the messages contained inside the exchange.

Is there a cleaner way to place the custom message headers in only one

Best Regards,
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message