I found out that if I use both logging and StaxTransformFeature at the
same time, logging will not be performed. If I comment out
"transformFeature" in "features", logging works again

How can they work together? I am using cxf-2.4.2


<bean id="transformFeature" class="org.apache.cxf.feature.StaxTransformFeature">
        <property name="outTransformElements">
            <map>
                <entry key="{myapi}*" value="{myapi.API}*"/>
            </map>
        </property>
        <property name="inTransformElements">
            <map>
                <entry key="{myapi.API}*" value="{myapi}*"/>
            </map>
        </property>
    </bean>

    <bean id="fastinfoset" class="org.apache.cxf.feature.FastInfosetFeature"/>

    <bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
    <bean id="logOutbound"
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>

    <cxf:bus>
        <cxf:features>
            <cxf:logging/>
            <ref bean="transformFeature"/>
        </cxf:features>
        <cxf:outInterceptors>
            <ref bean="logOutbound"/>
        </cxf:outInterceptors>
        <cxf:inInterceptors>
            <ref bean="logInbound"/>
        </cxf:inInterceptors>
    </cxf:bus>

Reply via email to