I have a requirement to use a servicemix-cxf-bc in a camel application (camel
context) as well as a cxfEndpoint source.
What is the best way to achieve this?
My thought is this should suffice
<bean>
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
<import
resource="classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml" />
<import
resource="classpath:org/apache/servicemix/camel/nmr/camel-nmr.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
<cxf:cxfEndpoint id="nauService"
address="nmr:nauRoute"
serviceName="nau:routeService"
endpointName="nau:routeServiceSoap12"
xmlns:nau="http://tempuri.org/">
</cxf:cxfEndpoint>
<cxfbc:provider wsdl="/wsdl/myservice.wsdl"
locationURI="http://192.168.0.12:9001/bridgetest"
service="serviceNamespace:myservice"
endpoint="myendpoint"
interfaceName="serviceNamespace:myPortType">
</cxfbc:provider>
<camelContext trace="true" xmlns="http://camel.apache.org/schema/spring">
<camel:route>
<to uri="cxf:bean:nauService"/>
<!-- Do some other interesting things in btw here b/4 sending to
remote -->
<to uri="xslt:file:///D:translateMessage.xsl" id="XSLT_0">
<to
uri="nmr:service:serviceNamespace/myservice/myendpoint?mep=inout"/>
</camel:route>
</camelContext>
<bean>
Is this a valid assumption?
--
View this message in context:
http://old.nabble.com/Using-servicemix-cxf-bc-jbi-component-in-a-camel-context-tp26623288p26623288.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.