>From the XSD
http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd

I can see a "bus" attribute.

I would assume the blueprint XSD is very similar to the Spring XSD,
where you can set a bus etc.


On Wed, Nov 23, 2011 at 6:03 PM, Brian Topping <topp...@codehaus.org> wrote:
> Some more details about what I am doing.  I've distilled the configuration 
> down to what's below.  It's Camel 2.9-SNAPSHOT running on Karaf 2.2.4, with 
> CXF 2.4.3.
>
> About five lines from the end, there are two endpoints that I've been trying 
> to work with.  The first one with cxfbean works fine, but it's not clear how 
> to define a bus in Blueprint to use with it.  The cxf component allows the 
> definition of a bus in Blueprint, but only as a part (and associated with) 
> the cxfEndpoint element.
>
> Should there be a bus element at the top level of the 
> http://camel.apache.org/schema/blueprint/cxf schema?
>
> Thanks kindly for any input!
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
>           xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf";
>           xmlns:camel="http://camel.apache.org/schema/blueprint";
>           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>                ">
>
>    <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
>        <property name="connectionFactory">
>            <bean class="org.apache.activemq.ActiveMQConnectionFactory">
>                <property name="brokerURL" value="vm://localhost"/>
>            </bean>
>        </property>
>    </bean>
>
>    <camelcxf:cxfEndpoint id="routerEndpoint"
>                          
> serviceClass="org.apache.camel.itest.osgi.cxf.jaxrs.testbean.CustomerService">
>    </camelcxf:cxfEndpoint>
>
>    <camelContext xmlns="http://camel.apache.org/schema/blueprint";>
>        <!--<routeBuilder ref="websocketRoutes"/>-->
>        <!--<package>net.mauswerks.component.admin</package>-->
>        <route>
>            <from 
> uri="jetty:http://0.0.0.0:9000/customerservice?matchOnUriPrefix=true"/>
>            <to uri="jms:queue:test"/>
>            <to uri="log:test"/>
>        </route>
>        <route>
>            <from uri="jms:queue:test"/>
>            <!-- The first line here works, the second (uncommented) line does 
> not -->
>            <!--<to uri="cxfbean:customerServiceBean"/>-->
>            <to uri="cxf:bean:routerEndpoint"/>
>        </route>
>    </camelContext>
>
>    <bean id="customerServiceBean" 
> class="org.apache.camel.itest.osgi.cxf.jaxrs.testbean.CustomerService"/>
> </blueprint>
>
> On Nov 22, 2011, at 4:44 PM, Brian Topping wrote:
>
>> Hi all,
>>
>> I'd like to secure a cxfbean resource using Spring Security and SS 
>> authorization annotations.  To do so, it appears that it will require adding 
>> an interceptor to the CXF endpoint as an element of a bus.
>>
>> So far, I have been trying to do everything in blueprint.  But it doesn't 
>> appear that there's a good way to define a bus in blueprint.  Bus appears to 
>> be new in 2.9, is this an implementation detail that hasn't made it in yet 
>> or am I missing some subtlety on how to put this together?
>>
>> It may also be that I need to use the "cxf:bean:" endpoint (which does have 
>> the ability to configure a bus), but I haven't been able to discern that 
>> JAX-RS is supported by the cxf endpoint yet.
>>
>> Any thoughts appreciated!
>>
>> Brian
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to