You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2013/01/06 08:23:47 UTC
svn commit: r845197 - in /websites/production/camel/content:
book-cookbook.html camel-transport-for-cxf.html
Author: buildbot
Date: Sun Jan 6 07:23:47 2013
New Revision: 845197
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/book-cookbook.html
websites/production/camel/content/camel-transport-for-cxf.html
Modified: websites/production/camel/content/book-cookbook.html
==============================================================================
--- websites/production/camel/content/book-cookbook.html (original)
+++ websites/production/camel/content/book-cookbook.html Sun Jan 6 07:23:47 2013
@@ -2894,8 +2894,13 @@ from(<span class="code-quote">"file:data
BusFactory bf = BusFactory.newInstance();
Bus bus = bf.createBus();
CamelTransportFactory camelTransportFactory = <span class="code-keyword">new</span> CamelTransportFactory();
-camelTransportFactory.setCamelContext(context)
-<span class="code-comment">// register the conduit initiator
+<span class="code-comment">// set up the CamelContext which will be use by the CamelTransportFactory
+</span>camelTransportFactory.setCamelContext(context)
+<span class="code-comment">// <span class="code-keyword">if</span> you are using CXF higher then 2.4.x the
+</span>camelTransportFactory.setBus(bus);
+
+<span class="code-comment">// <span class="code-keyword">if</span> you are lower CXF, you need to register the ConduitInitiatorManager and DestinationFactoryManager like below
+</span><span class="code-comment">// register the conduit initiator
</span>ConduitInitiatorManager cim = bus.getExtension(ConduitInitiatorManager.class);
cim.registerConduitInitiator(CamelTransportFactory.TRANSPORT_ID, camelTransportFactory);
<span class="code-comment">// register the destination factory
Modified: websites/production/camel/content/camel-transport-for-cxf.html
==============================================================================
--- websites/production/camel/content/camel-transport-for-cxf.html (original)
+++ websites/production/camel/content/camel-transport-for-cxf.html Sun Jan 6 07:23:47 2013
@@ -125,8 +125,13 @@
BusFactory bf = BusFactory.newInstance();
Bus bus = bf.createBus();
CamelTransportFactory camelTransportFactory = <span class="code-keyword">new</span> CamelTransportFactory();
-camelTransportFactory.setCamelContext(context)
-<span class="code-comment">// register the conduit initiator
+<span class="code-comment">// set up the CamelContext which will be use by the CamelTransportFactory
+</span>camelTransportFactory.setCamelContext(context)
+<span class="code-comment">// <span class="code-keyword">if</span> you are using CXF higher then 2.4.x the
+</span>camelTransportFactory.setBus(bus);
+
+<span class="code-comment">// <span class="code-keyword">if</span> you are lower CXF, you need to register the ConduitInitiatorManager and DestinationFactoryManager like below
+</span><span class="code-comment">// register the conduit initiator
</span>ConduitInitiatorManager cim = bus.getExtension(ConduitInitiatorManager.class);
cim.registerConduitInitiator(CamelTransportFactory.TRANSPORT_ID, camelTransportFactory);
<span class="code-comment">// register the destination factory