You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2008/06/23 12:51:32 UTC

svn commit: r670513 - in /servicemix/smx4/features/trunk/camel/servicemix-camel/src/test: java/org/apache/servicemix/camel/ java/org/apache/servicemix/camel/ws/addressing/ java/org/apache/servicemix/camel/ws/policy/ java/org/apache/servicemix/camel/ws/...

Author: ffang
Date: Mon Jun 23 03:51:31 2008
New Revision: 670513

URL: http://svn.apache.org/viewvc?rev=670513&view=rev
Log:
[SMX4-33]several smx4/features/camel tests failed due to recent change in camel-cxf component

Modified:
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/SmxToCxfTest.java
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/addressing/WSAddressingTest.java
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/policy/WSPolicyTest.java
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/rm/WSRMTest.java
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/security/WSSecurityTest.java
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/EndpointBeans.xml
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/mtom.xml
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/addressing/server.xml
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/policy/server.xml
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/rm/server.xml
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/security/server.xml

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/SmxToCxfTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/SmxToCxfTest.java?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/SmxToCxfTest.java (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/SmxToCxfTest.java Mon Jun 23 03:51:31 2008
@@ -34,8 +34,8 @@
     protected static final String SERVICE_ADDRESS = "local://smx/helloworld";
     protected static final String SERVICE_CLASS = "serviceClass=org.apache.servicemix.camel.HelloService";
     
-    private String routerEndpointURI = "cxf://" + ROUTER_ADDRESS + "?" + SERVICE_CLASS + "&dataFormat=POJO";
-    private String serviceEndpointURI = "cxf://" + SERVICE_ADDRESS + "?" + SERVICE_CLASS + "&dataFormat=POJO";
+    private String routerEndpointURI = "cxf://" + ROUTER_ADDRESS + "?" + SERVICE_CLASS + "&dataFormat=POJO&setDefaultBus=true";
+    private String serviceEndpointURI = "cxf://" + SERVICE_ADDRESS + "?" + SERVICE_CLASS + "&dataFormat=POJO&setDefaultBus=true";
     
     private ServerImpl server;
 

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/addressing/WSAddressingTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/addressing/WSAddressingTest.java?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/addressing/WSAddressingTest.java (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/addressing/WSAddressingTest.java Mon Jun 23 03:51:31 2008
@@ -189,12 +189,6 @@
     
     protected CamelContext createCamelContext() throws Exception {
     	camelContext = SpringCamelContext.springCamelContext(applicationContext);
-    	SpringBusFactory bf = new SpringBusFactory();
-        bus = bf.createBus(getConfigFileName());
-        BusFactory.setDefaultBus(bus);
-    	CamelTransportFactory camelTransportFactory = (CamelTransportFactory) bus.getExtension(ConduitInitiatorManager.class)
-        	.getConduitInitiator(CamelTransportFactory.TRANSPORT_ID);
-    	camelTransportFactory.setCamelContext(camelContext);
     	smxComponent = new ServiceMixComponent();
     	nmr = new ServiceMix();
     	((ServiceMix)nmr).init();

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/policy/WSPolicyTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/policy/WSPolicyTest.java?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/policy/WSPolicyTest.java (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/policy/WSPolicyTest.java Mon Jun 23 03:51:31 2008
@@ -70,10 +70,9 @@
     
 
     
-    protected void startService() {
+    protected void startService() throws Exception {
     	Object implementor = new GreeterImpl();
     	javax.xml.ws.Endpoint.publish(SERVICE_ADDRESS, implementor);
- 
     }
     
     @Override
@@ -91,20 +90,18 @@
         return new RouteBuilder() {
             public void configure() {
             	from("cxf:bean:routerEndpoint").to("smx:testEndpoint");
-            	from("smx:testEndpoint").to("cxf:bean:serviceEndpoint");       
+            	from("smx:testEndpoint").to("cxf:bean:serviceEndpoint");  
+                
+                
             }
         };
     }
     
+    
+    @Override
     protected CamelContext createCamelContext() throws Exception {
     	camelContext = SpringCamelContext.springCamelContext(applicationContext);
-    	SpringBusFactory bf = new SpringBusFactory();
-        bus = bf
-                .createBus("/org/apache/servicemix/camel/ws/policy/addr.xml");
-        BusFactory.setDefaultBus(bus);
-    	CamelTransportFactory camelTransportFactory = (CamelTransportFactory) bus.getExtension(ConduitInitiatorManager.class)
-        	.getConduitInitiator(CamelTransportFactory.TRANSPORT_ID);
-    	camelTransportFactory.setCamelContext(camelContext);
+    	
     	smxComponent = new ServiceMixComponent();
     	nmr = new ServiceMix();
     	((ServiceMix)nmr).init();

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/rm/WSRMTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/rm/WSRMTest.java?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/rm/WSRMTest.java (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/rm/WSRMTest.java Mon Jun 23 03:51:31 2008
@@ -98,12 +98,6 @@
     
     protected CamelContext createCamelContext() throws Exception {
     	camelContext = SpringCamelContext.springCamelContext(applicationContext);
-    	SpringBusFactory bf = new SpringBusFactory();
-        bus = bf.createBus();
-        BusFactory.setDefaultBus(bus);
-    	CamelTransportFactory camelTransportFactory = (CamelTransportFactory) bus.getExtension(ConduitInitiatorManager.class)
-        	.getConduitInitiator(CamelTransportFactory.TRANSPORT_ID);
-    	camelTransportFactory.setCamelContext(camelContext);
     	smxComponent = new ServiceMixComponent();
     	nmr = new ServiceMix();
     	((ServiceMix)nmr).init();

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/security/WSSecurityTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/security/WSSecurityTest.java?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/security/WSSecurityTest.java (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/java/org/apache/servicemix/camel/ws/security/WSSecurityTest.java Mon Jun 23 03:51:31 2008
@@ -105,10 +105,7 @@
     
     protected CamelContext createCamelContext() throws Exception {
     	camelContext = SpringCamelContext.springCamelContext(applicationContext);
-    	Bus bus = new SpringBusFactory().createBus(); 
-    	CamelTransportFactory camelTransportFactory = (CamelTransportFactory) bus.getExtension(ConduitInitiatorManager.class)
-        	.getConduitInitiator(CamelTransportFactory.TRANSPORT_ID);
-    	camelTransportFactory.setCamelContext(camelContext);
+    	
     	smxComponent = new ServiceMixComponent();
     	nmr = new ServiceMix();
     	((ServiceMix)nmr).init();

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/EndpointBeans.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/EndpointBeans.xml?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/EndpointBeans.xml (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/EndpointBeans.xml Mon Jun 23 03:51:31 2008
@@ -27,11 +27,19 @@
 
   
   <cxf:cxfEndpoint id="routerEndpoint" address="http://localhost:9000/router" 
-                   serviceClass="org.apache.servicemix.camel.HelloService"/>
+                   serviceClass="org.apache.servicemix.camel.HelloService">
+       <cxf:properties>
+           <entry key="setDefaultBus" value="true"/>
+       </cxf:properties>
+  </cxf:cxfEndpoint>
   
     
   <cxf:cxfEndpoint id="serviceEndpoint" address="local://smx/helloworld" 
-                   serviceClass="org.apache.servicemix.camel.HelloService"/>
+                   serviceClass="org.apache.servicemix.camel.HelloService">
+       <cxf:properties>
+           <entry key="setDefaultBus" value="true"/>
+       </cxf:properties>
+  </cxf:cxfEndpoint>
 
   <camel:camelContext>
   </camel:camelContext>

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/mtom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/mtom.xml?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/mtom.xml (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/spring/mtom.xml Mon Jun 23 03:51:31 2008
@@ -29,15 +29,22 @@
                    address="http://localhost:9036/mime-test"
                    serviceClass="org.apache.cxf.mime.TestMtom"
                    wsdlURL="/wsdl/mtom_xop.wsdl"
-                   serviceName="mtom:TestMtomService"/>
-  
+                   serviceName="mtom:TestMtomService">
+       <cxf:properties>
+           <entry key="setDefaultBus" value="true"/>
+       </cxf:properties>
+  </cxf:cxfEndpoint> 
     
   <cxf:cxfEndpoint id="serviceEndpoint"
                    address="local://smx/attachment"
                    serviceClass="org.apache.cxf.mime.TestMtom"
                    wsdlURL="/wsdl/mtom_xop.wsdl"
                    serviceName="mtom:TestMtomService"
-                   transportId="http://cxf.apache.org/transports/local"/>
+                   transportId="http://cxf.apache.org/transports/local">
+       <cxf:properties>
+           <entry key="setDefaultBus" value="true"/>
+       </cxf:properties>
+  </cxf:cxfEndpoint>
 
   <bean id="org.apache.servicemix.nmr.api.NMR" class="org.apache.servicemix.nmr.core.ServiceMix" init-method="init" />
 

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/addressing/server.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/addressing/server.xml?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/addressing/server.xml (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/addressing/server.xml Mon Jun 23 03:51:31 2008
@@ -23,13 +23,18 @@
     xmlns:test="http://cxf.apache.org/greeter_control"
     xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
     xmlns:smx="http://servicemix.apache.org/camelEndpoint/"
+    xmlns:camel="http://cxf.apache.org/transports/camel"
     xsi:schemaLocation="
         http://www.springframework.org/schema/beans                     http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
         http://cxf.apache.org/jaxws                                     http://cxf.apache.org/schemas/jaxws.xsd
         http://activemq.apache.org/camel/schema/cxfEndpoint http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
         http://servicemix.apache.org/camelEndpoint/ http://servicemix.apache.org/camelEndpoint/.xsd
-
+        http://cxf.apache.org/transports/camel http://cxf.apache.org/transports/camel.xsd
     ">
+    <camel:destination name="{http://apache.org/hello_world_soap_http}SoapPort.camel-destination">
+        <camelContext  xmlns="http://activemq.apache.org/camel/schema/spring">
+        </camelContext>
+   </camel:destination>
 
     <bean id="mapAggregator" class="org.apache.cxf.ws.addressing.MAPAggregator"/>
     <bean id="mapCodec" class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
@@ -38,6 +43,7 @@
     <cxf:cxfEndpoint id="routerEndpoint" name="test:GreeterPort" address="camel://jetty:http://localhost:9008/SoapContext/SoapPort"  serviceClass="org.apache.hello_world_soap_http.Greeter">
         <cxf:properties>
             <entry key="dataFormat" value="POJO"/>
+            <entry key="setDefaultBus" value="true"/>
         </cxf:properties>
         <cxf:features>
             <bean class="org.apache.cxf.feature.LoggingFeature"/>
@@ -67,6 +73,7 @@
       serviceClass="org.apache.hello_world_soap_http.Greeter">
         <cxf:properties>
             <entry key="dataFormat" value="POJO"/>
+            <entry key="setDefaultBus" value="true"/>
         </cxf:properties>
     </cxf:cxfEndpoint>
 

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/policy/server.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/policy/server.xml?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/policy/server.xml (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/policy/server.xml Mon Jun 23 03:51:31 2008
@@ -22,24 +22,35 @@
     xmlns:jaxws="http://cxf.apache.org/jaxws"
     xmlns:test="http://cxf.apache.org/greeter_control"
     xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
+    xmlns:camel="http://cxf.apache.org/transports/camel"
     xmlns:smx="http://servicemix.apache.org/camelEndpoint/"
     xsi:schemaLocation="
         http://www.springframework.org/schema/beans                     http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
         http://cxf.apache.org/jaxws                                     http://cxf.apache.org/schemas/jaxws.xsd
         http://activemq.apache.org/camel/schema/cxfEndpoint http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
         http://servicemix.apache.org/camelEndpoint/ http://servicemix.apache.org/camelEndpoint/.xsd
-
+        http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+        http://cxf.apache.org/transports/camel http://cxf.apache.org/transports/camel.xsd
     ">
 
-    
+    <camel:destination name="{http://cxf.apache.org/greeter_control}GreeterPort.camel-destination">
+        <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
+        </camelContext>
+   </camel:destination> 
     <cxf:cxfEndpoint id="routerEndpoint" name="test:GreeterPort" address="camel://jetty:http://localhost:9020/SoapContext/GreeterPort"  serviceClass="org.apache.cxf.greeter_control.Greeter">
         <cxf:features>
             <bean class="org.apache.cxf.feature.LoggingFeature"/>
         </cxf:features>
+        <cxf:properties>
+            <entry key="setDefaultBus" value="true"/>
+        </cxf:properties>
     </cxf:cxfEndpoint>
 
 
     <cxf:cxfEndpoint id="serviceEndpoint" address="local://smx/hello_world"
-      serviceClass="org.apache.cxf.greeter_control.Greeter"/>
-
+      serviceClass="org.apache.cxf.greeter_control.Greeter">
+        <cxf:properties>
+            <entry key="setDefaultBus" value="true"/>
+        </cxf:properties>
+    </cxf:cxfEndpoint>
 </beans>

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/rm/server.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/rm/server.xml?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/rm/server.xml (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/rm/server.xml Mon Jun 23 03:51:31 2008
@@ -22,17 +22,24 @@
     xmlns:jaxws="http://cxf.apache.org/jaxws"
     xmlns:test="http://cxf.apache.org/greeter_control"
     xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
+    xmlns:camel="http://cxf.apache.org/transports/camel"
     xsi:schemaLocation="
         http://www.springframework.org/schema/beans                     http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
         http://cxf.apache.org/jaxws                                     http://cxf.apache.org/schemas/jaxws.xsd
         http://activemq.apache.org/camel/schema/cxfEndpoint http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
+        http://cxf.apache.org/transports/camel http://cxf.apache.org/transports/camel.xsd
     ">
+    <camel:destination name="{http://cxf.apache.org/greeter_control}GreeterPort.camel-destination">
+        <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
+        </camelContext>
+   </camel:destination>
 
     <bean id="mapAggregator" class="org.apache.cxf.ws.addressing.MAPAggregator"/>
     <bean id="mapCodec" class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
     <cxf:cxfEndpoint id="routerEndpoint" name="test:GreeterPort" address="camel://jetty:http://localhost:9020/SoapContext/GreeterPort"  serviceClass="org.apache.cxf.greeter_control.Greeter">
         <cxf:properties>
             <entry key="dataFormat" value="POJO"/>
+            <entry key="setDefaultBus" value="true"/>
         </cxf:properties>
         <cxf:features>
             <bean class="org.apache.cxf.feature.LoggingFeature"/>
@@ -62,6 +69,7 @@
       serviceClass="org.apache.cxf.greeter_control.Greeter">
         <cxf:properties>
             <entry key="dataFormat" value="POJO"/>
+            <entry key="setDefaultBus" value="true"/>
         </cxf:properties>
     </cxf:cxfEndpoint>
 

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/security/server.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/security/server.xml?rev=670513&r1=670512&r2=670513&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/security/server.xml (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/test/resources/org/apache/servicemix/camel/ws/security/server.xml Mon Jun 23 03:51:31 2008
@@ -23,14 +23,18 @@
     xmlns:test="http://apache.org/hello_world_soap_http"
     xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
     xmlns:smx="http://servicemix.apache.org/camelEndpoint/"
+    xmlns:camel="http://cxf.apache.org/transports/camel"
     xsi:schemaLocation="
         http://www.springframework.org/schema/beans                     http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
         http://cxf.apache.org/jaxws                                     http://cxf.apache.org/schemas/jaxws.xsd
         http://activemq.apache.org/camel/schema/cxfEndpoint http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
         http://servicemix.apache.org/camelEndpoint/ http://servicemix.apache.org/camelEndpoint/.xsd
-
+        http://cxf.apache.org/transports/camel http://cxf.apache.org/transports/camel.xsd
     ">
-
+    <camel:destination name="{http://apache.org/hello_world_soap_http}TimestampSignEncrypt.camel-destination">
+        <camelContext  xmlns="http://activemq.apache.org/camel/schema/spring">
+        </camelContext>
+   </camel:destination>
     
     <cxf:cxfEndpoint id="routerEndpoint" name="test:TimestampSignEncrypt" address="camel://jetty:http://localhost:9000/SOAPServiceWSSecurity/TimestampSignEncrypt"  serviceClass="org.apache.hello_world_soap_http.Greeter">
         <cxf:features>
@@ -44,11 +48,18 @@
             <ref bean="TimestampSignEncrypt_Request"/>
             <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
         </cxf:inInterceptors>
+        <cxf:properties>
+            <entry key="setDefaultBus" value="true"/>
+        </cxf:properties>
     </cxf:cxfEndpoint>
 
 
     <cxf:cxfEndpoint id="serviceEndpoint" address="local://smx/hello_world"
-      serviceClass="org.apache.hello_world_soap_http.Greeter"/>
+      serviceClass="org.apache.hello_world_soap_http.Greeter">
+        <cxf:properties>
+            <entry key="setDefaultBus" value="true"/>
+        </cxf:properties>
+    </cxf:cxfEndpoint>
 
 
     <bean