How to filter the Camel CXF header when the dataformat is MESSAGE?

Solution Verified - Updated -

Issue

In production we have an issue whereby our F5 is stopping HTTP requests because the headers are over a configured threshold of XX Kb. to resolve this, i am attempting to configure my CXF client endpoint as per below. but when executing locally with break points and logging I am not seeing the header filter strategy being executed. The Camel CXF headerFilterStrategy not being invoked.

<bean id="cxfHeaderFilterStrategy" class="org.apache.camel.component.cxf.common.header.CxfHeaderFilterStrategy">
    <property name="messageHeaderFilters">
        <list>
            <bean class="com.redhat.testcamel.ws.CxfHeaderFilter" ></bean>
        </list>
    </property> 
</bean>

Environment

  • Red Hat JBoss Fuse 6.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.