The below is my cxf endpoints.xml file

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:beans="http://cxf.apache.org/configuration/beans";
    xmlns:jaxws="http://cxf.apache.org/jaxws";
    xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
    http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
        http://cxf.apache.org/configuration/beans
http://cxf.apache.org/schemas/configuration/cxf-beans.xsd
        http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd";>



<import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />


<bean id="bayer" class="com.tata.bayer.service.BayerWeb" />

  <bean id="logInbound" 
class="org.apache.cxf.interceptor.LoggingInInterceptor"/> 
    <bean id="logOutbound" 
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> 

    <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl"> 
        <property name="inInterceptors"> 
            <list> 
                <ref bean="logInbound"/> 
            </list> 
        </property> 
        <property name="outInterceptors"> 
            <list> 
                <ref bean="logOutbound"/> 
            </list> 
        </property> 
        <property name="outFaultInterceptors"> 
            <list> 
                <ref bean="logOutbound"/> 
            </list> 
        </property> 
    </bean> 



<jaxws:endpoint id="bayerImpl" implementor="#bayer" address="/bayerWeb"/>


</beans>

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Where-to-add-cxf-bus-inside-the-Apache-CXF-endpoints-xml-file-tp4980762p4980762.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to