hi,
thank you very much.
I use different port,but it still doesn't work.
Finally I specify the bus option per CXF endpoint,This problem solved.

Why don't specify this option, it wouldn't work.


Changed  Spring configuration file like this:

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

        
        <camel:camelContext id="camelContext ">
                <camel:route id="route1">
                        <camel:from
uri="cxf://http://0.0.0.0:5100/proxy1?dataFormat=MESSAGE&amp;wsdlURL=http://192.168.0.218:8500/ws?wsdl&amp;bus=#mybus";
/>
                        <camel:to
uri="cxf://http://192.168.0.218:8500/ws?dataFormat=MESSAGE&amp;bus=#mybus";
/>
                </camel:route>
                <camel:route id="route2">
                        <camel:from
uri="cxf://http://0.0.0.0:5100/proxy2?dataFormat=MESSAGE&amp;wsdlURL=http://192.168.0.218:8500/ws?wsdl&amp;bus=#mybus";
/>
                        <camel:to
uri="cxf://http://192.168.0.218:8500/ws?dataFormat=MESSAGE&amp;bus=#mybus";
/>
                </camel:route>
        </camel:camelContext>

        <bean id="webServiceTest" class="WebServiceTestImpl">
                <property name="camelContext" ref="camelContext" />
        </bean>
        <jaxws:endpoint id="webServiceTestEndpoint"
implementor="#webServiceTest" address="http://0.0.0.0:8100/service";
bus="mybus" />

        <cxf:bus name="mybus" id="mybus" >
        </cxf:bus>
</beans>





--
View this message in context: 
http://camel.465427.n5.nabble.com/cxf-bus-tp5742573p5742637.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to