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