Hi,

Could you try this:

<beans xmlns="http://www.springframework.org/schema/beans";
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xmlns:cxf="http://cxf.apache.org/core";
      xsi:schemaLocation="
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
 
    <bean id="logOutbound" 
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
 
    <cxf:bus>
        <cxf:outInterceptors>
            <ref bean="logOutbound"/>
        </cxf:outInterceptors>
    </cxf:bus>
</beans>
?

Regrads,
Andrei.

> -----Original Message-----
> From: zsolt.szloboda [mailto:[email protected]]
> Sent: Freitag, 27. Juni 2014 04:23
> To: [email protected]
> Subject: cxf:bus with jaxws:endpoint
> 
> I cannot find out how to make a working spring configuration for the
> following:
> I would like to define a common Interceptor, that is linked to several
> jaxws:endpoints.
> 
> I tried something like this:
> 
> <jaxws:endpoint id="endpoint1" bus="myBus" ...>...</jaxws:endpoint>
> <jaxws:endpoint id="endpoint2" bus="myBus" ...>...</jaxws:endpoint> <cxf:bus
> name="myBus"><cxf:outInterceptors>...</cxf:bus>
> 
> but for this I get:
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'cxf' is defined
> 
> without the bus definition, everything works fine (but there is no interceptor
> then)
> 
> I succeeded to define the interceptor on a per-endpoint basis (ie
> jaxws:outInterceptors tag inside the jaxws:endpoint tag), but I would prefer 
> to
> defined the interceptors once, in a common bus, and just link the bus to the
> endpoints; is this possible?
> 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/cxf-bus-with-
> jaxws-endpoint-tp5745696.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to