On Wednesday, November 23, 2011 12:03:08 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 > http://camel.apache.org/schema/blueprint/cxf schema?
No. At that point, you start actually using parts of CXF's blueprint support: http://cxf.apache.org/schemas/blueprint/core.xsd Use: <cxf:bus xmlns:cxf="http://cxf.apache.org/blueprint/core" name="cxf"> ...... </cxf:bus> Dan > > 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.CustomerServic > e"> </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 -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com