Hi all, according to this page: https://cwiki.apache.org/confluence/display/CXF20DOC/Configuration#Configuration-WhatcanIconfigureandhowdoIdoit?

To activate standard JDK logging for a servlet-hosted web service provider, I need to add the logging.properties to the WEB-INF/lib folder of my WAR (unless I want to do JDK config at the JDK level) and add the <bean id="cxf"...> section (or simpler versions given in the doc above) to my servlet-hosted cxf-servlet.xml config file:

<beans....>

<jaxws:endpoint id="doubleit"
      implementor="service.DoubleItPortTypeImpl"
      address="/doubleit"
      wsdlLocation="WEB-INF/wsdl/DoubleIt.wsdl">
</jaxws:endpoint>


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

<bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl">
<property name="inInterceptors">
<list>
<ref bean="logInbound"/>
</list>
</property>
<property name="outInterceptors">
<list>
<ref bean="logOutbound"/>
</list>
</property>
<property name="outFaultInterceptors">
<list>
<ref bean="logOutbound"/>
</list>
</property>
<property name="inFaultInterceptors">
<list>
<ref bean="logInbound"/>
</list>
</property>
</bean>
</beans>

This is correct? Whatever I declare at the CXFBusImpl level will be the default for each jaxws:endpoint if I don't declare logging there? Also, how does CXF know *where* in the interceptor chain to properly put the logging interceptors -- does it go first or last in each chain?

Thanks,
Glen


--

Glen Mazza
gmazza at apache dot org
http://www.jroller.com/gmazza

Reply via email to