camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Defining a CXF bus in Blueprint for use with cxfbean endpoint
Date Wed, 23 Nov 2011 17:05:28 GMT
>From the 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 <> 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
> Thanks kindly for any input!
> <blueprint xmlns=""
>           xmlns:xsi=""
>           xmlns:cm=""
>           xmlns:camelcxf=""
>           xmlns:camel=""
>           xsi:schemaLocation="
>                ">
>    <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="">
>        <!--<routeBuilder ref="websocketRoutes"/>-->
>        <!--<package>net.mauswerks.component.admin</package>-->
>        <route>
>            <from uri="jetty:"/>
>            <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
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message