On 15/08/14 13:09, nono wrote:
Could you please a little bite elaborate how to do this?
*and a route redirecting from a Camel Servlet redirecting to "camel:/rest".
*
<jaxrs:server address="camel://direct:bookStore" id="http-server">
<jaxrs:serviceBeans>
<ref bean="store" />
</jaxrs:serviceBeans>
</jaxrs:server>
<bean id="store" class="service.BookStoreImpl"/>
<property name="bookListener" ref="bookSender" />
</bean>
<camelContext id="camelContext"
xmlns="http://camel.apache.org/schema/spring" trace="true">
<!-- This route offers the cxf endpoint using an embedded
jetty instance -->
<route>
<from
uri="jetty:http://0.0.0.0:${http.port}/bookstore?matchOnUriPrefix=true" />
<to uri="direct:bookStore" />
</route>
</camelContext>
HTH, Sergey