|
Page Created :
CXF20DOC :
Bus Configuration
Bus Configuration has been created by Andrea Smyth (Jul 27, 2007). Content:Configuring the BusThe Bus is the backbone of CXF architecture. It manages extensions and acts as an interceptor provider. The interceptors for the bus will be added to the respective inbound and outbound message and fault interceptor chains for all client and server endpoints created on the bus (in it's context). <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>
The configurable properties of the bus are defined in the bus configuration schema [http://cxf.apache.org/schemas/core.xsd http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/resources/schemas/core.xsd?view=markup]. The <bus> elements supports the following child elements:
Extending the BusTODO: Explain how to add a custom bus extension (META-INF/cxf/cxf.extension ...). |
Unsubscribe or edit your notifications preferences
