[
https://issues.apache.org/activemq/browse/CAMEL-2185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55525#action_55525
]
Willem Jiang commented on CAMEL-2185:
-------------------------------------
Here is a way if you want to use camel transport without import the
cxf-extension-camel.xml, you can inject the camel context like this
{code}
<bean
class="org.apache.camel.component.cxf.transport.CamelTransportFactory"
lazy-init="false">
<property name="bus" ref="cxf" />
<property name="camelContext" ref="camelContext" />
<property name="transportIds">
<list>
<value>http://cxf.apache.org/transports/camel</value>
</list>
</property>
</bean>
<camelContext id="camelContext"
xmlns="http://camel.apache.org/schema/spring">
<route>
<from
uri="jetty:http://localhost:9091/GreeterContext/GreeterPort" />
<loadBalance ref="roundRobinRef">
<to uri="direct:EndpointA" />
<to uri="direct:EndpointB" />
</loadBalance>
</route>
</camelContext>
{code}
> export the META-INF.cxf for cxf user to load the camel transport component
> --------------------------------------------------------------------------
>
> Key: CAMEL-2185
> URL: https://issues.apache.org/activemq/browse/CAMEL-2185
> Project: Apache Camel
> Issue Type: Improvement
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.1.0
>
>
> If the CXF user want to use the camel-transport component in OSGi platform,
> he may need to import META-INF.cxf package.
> But current camel-cxf bundle doesn't export this package.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.