Apache CXF 2.0 Documentation > Index > CXF Architecture > Configuration of the Bus |
By creating a bus with your own bean configuration file, i.e. using the factory method
SpringBeanFactory.createBus("mycxf.xml")
For example, by replacing the bus bean defined in cxf.xml with this bean in your configuration file:
<bean id="cxf" class="org.apache.cxf.bus.spring.SpringBusImpl"> <property name="outInterceptors"> <list> <ref bean="myLoggingInterceptor"/> </list> </property> </bean> <bean id="myLogHandler" class="org.mycompany.com.cxf.logging.LoggingInterceptor"> ... </bean>
the constructed bus will use a list of out interceptors consisting of your LoggingInterceptor (the default list of out interceptors at the bus level is empty).