camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r633770 - in /activemq/camel/trunk/components/camel-cxf/src/test: java/org/apache/camel/component/cxf/transport/CamelTestSupport.java resources/org/apache/camel/component/cxf/transport/CamelConduit.xml
Date Wed, 05 Mar 2008 05:19:24 GMT
Author: ningjiang
Date: Tue Mar  4 21:19:23 2008
New Revision: 633770

URL: http://svn.apache.org/viewvc?rev=633770&view=rev
Log:
Updated the code for the wiki document

Modified:
    activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/transport/CamelTestSupport.java
    activemq/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/transport/CamelConduit.xml

Modified: activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/transport/CamelTestSupport.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/transport/CamelTestSupport.java?rev=633770&r1=633769&r2=633770&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/transport/CamelTestSupport.java
(original)
+++ activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/transport/CamelTestSupport.java
Tue Mar  4 21:19:23 2008
@@ -50,8 +50,9 @@
         CamelTransportFactory camelTransportFactory = new CamelTransportFactory();
         //set the context here to the transport factory;
         camelTransportFactory.setCamelContext(context);
-
         ConduitInitiatorManager cim = bus.getExtension(ConduitInitiatorManager.class);
+        dfm.registerDestinationFactory(CamelTransportFactory.TRANSPORT_ID, camelTransportFactory);
+        cim.registerConduitInitiator(CamelTransportFactory.TRANSPORT_ID, camelTransportFactory);
         BusFactory.setDefaultBus(bus);
         endpointInfo = new EndpointInfo();
     }

Modified: activemq/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/transport/CamelConduit.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/transport/CamelConduit.xml?rev=633770&r1=633769&r2=633770&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/transport/CamelConduit.xml
(original)
+++ activemq/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/transport/CamelConduit.xml
Tue Mar  4 21:19:23 2008
@@ -17,7 +17,7 @@
 -->
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xmlns:camel="http://cxf.apache.org/transports/camel"         
+       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
@@ -31,15 +31,15 @@
    <camelContext id="conduit_context" xmlns="http://activemq.apache.org/camel/schema/spring">
        <route>
            <from uri="direct:EndpointA" />
-           <to uri="direct:EndpointB" /> 
+           <to uri="direct:EndpointB" />
        </route>
    </camelContext>
 
    <camel:conduit name="{http://activemq.apache.org/camel-test}portA.camel-conduit">
        <camel:camelContextRef>conduit_context</camel:camelContextRef>
    </camel:conduit>
-
-    <camel:conduit name="{http://activemq.apache.org/camel-test}portB.camel-conduit">
+   <!-- START SNIPPET: example -->
+   <camel:conduit name="{http://activemq.apache.org/camel-test}portB.camel-conduit">
        <camelContext id="context" xmlns="http://activemq.apache.org/camel/schema/spring">
          <route>
            <from uri="direct:EndpointC" />
@@ -47,5 +47,6 @@
          </route>
          </camelContext>
    </camel:conduit>
+   <!-- END SNIPPET: example -->
 
 </beans>



Mime
View raw message