> I cannot find any examples for setting up camel-cxf using blueprint, can
> someone point me the right direction?
> The one I have found uses spring, is there a way to not use spring for this
> component?

This is a stripped down blueprint XML file that works. If I stripped too much 
and it doesn't make sense, please let me know and I'll try to help.

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf";
       xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
                           http://www.osgi.org/xmlns/1.0.0/blueprint.xsd
                           http://camel.apache.org/schema/blueprint/cxf
                           
http://camel.apache.org/schema/cxf/camel-cxf-blueprint.xsd";>

  <!-- These two cooperate to send web service requests to the mocked
       out web service substitute. The crewMock bean handles requests sent
       to the jetty service stand-in; the webService rsClient sends the
       request.
  -->
  <bean id="crewMock" class="messagerouter.CrewServiceMock">
  </bean>
  <camel-cxf:rsClient id="webService" address="http://localhost:9000"; 
serviceClass="com.my.co.WebService" loggingFeatureEnabled="true"/>

  <camelContext id="rraaCamelContext" 
xmlns="http://camel.apache.org/schema/blueprint";>

    <!-- Mocked out web service -->
    <route id="CrewMock">
      <from uri="jetty:http://localhost:9000?matchOnUriPrefix=true"/>
      <to uri="cxfbean:crewMock"/>
    </route>

    <route id="rraaIss">
      <from uri="seda:from_rraa"/>
      <to uri="cxfrs:bean:webService"/>
    </route>
  </camelContext>

</blueprint>

Reply via email to