Hi,

i'm using CXF in Tomcat 6.0. I deployed a simple JAX-WS Webservice along 
with CXF and tried to add an interceptor.

The webservice itself is working perfeclty but though my interceptor gets 
instantiated, it never get invoked.

I only use one configuration file, cxf-servlet.xml under 
WEB-INF/ with the following contents:

<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:jaxws="http://cxf.apache.org/jaxws";
        xmlns:cxf="http://cxf.apache.org/core";
        xsi:schemaLocation="
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd";>

<bean id="ServiceInterceptor" name="ServiceInterceptor" 
class="toy.ServiceInterceptor"/>

<jaxws:endpoint id="classImpl1"
    implementor="toy.WebService1"
    address="/WebService1"
    />
<jaxws:endpoint id="classImpl2"
    implementor="toy.WebService2"
    address="/WebService2"
    />
    
<!-- cxf:bus>
  <cxf:inInterceptors>
    <ref bean="ServiceInterceptor"/>
  </cxf:inInterceptors>
</cxf:bus-->

<bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl">
        <property name="inInterceptors">
            <list>
                <ref bean="ServiceInterceptor"/>
            </list>
        </property>
</bean>
</beans>



I already tried both, the cxf:bus element and the bean-element, nothing 
seems to help..

Did i miss something?

Best regards
T. Jungblut

Reply via email to