As far as I recall you can register TransformIn/OutInterceptor directly
and set a phase on it to make sure it is run before Logging interceptors.
Aki, can you please remind what the approach is, I recall you were
fixing this issue :-)
Thanks, Sergey
On 04/10/15 12:07, Christopher Cheng wrote:
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>
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/