You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Knut-Håvard Aksnes <kh...@gmail.com> on 2014/06/25 12:52:00 UTC

CXFRS documentation

Some context first:
1. I am trying to implement a REST service containing a number of methods
using CXFRS
2. The routes will be one part of a bigger war which will be deployed in
Tomcat.
3. I am trying to use bindingStyle=SimpleConsumer

The problem is that I find some of the xml configuration examples a little
confusing, particularly the references to
*org.apache.camel.component.cxf.jaxrs.testbean.CustomerService* 
For the server, why is this class needed at all, couldn't
*org.apache.camel.component.cxf.jaxrs.testbean.CustomerServiceResource* be
used instead?
The real implementation should be in the Camel routes.

Then there are Tomcat, there are an OK example showing how to configure CXF
endpoints for JAX-WS for use within Tomcat, but no similar documentation for
CXFRS, I just assume that the JAX-WS related information is relevant for
CXFRS too.



--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-documentation-tp5752788.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CXFRS documentation

Posted by Knut-Håvard Aksnes <kh...@gmail.com>.
The main reason I am looking into this at all is that the restlet component
doesn't offer a clean way of specifying and handling of QueryParameters, the
route description only contains the PathParameters
(@PathParam vs. @QueryParam annotations in JAX-RS)
It is possible to extract them from the CamelHttpQuery but this is quite
cumbersome when implementing this for lots of individual routes; we don't
want to add headers further down the processing chain unless them being
needed.
A route option on the restlet component supporting QueryParams  would help a
lot, something like queryParams=SortBy:name,SortingOrder:asc or something
similar. What needs to be added is a list of QueryParams with optional
default values.



--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-documentation-tp5752788p5752789.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CXFRS documentation

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 25/06/14 11:52, Knut-Håvard Aksnes wrote:
> Some context first:
> 1. I am trying to implement a REST service containing a number of methods
> using CXFRS
> 2. The routes will be one part of a bigger war which will be deployed in
> Tomcat.
> 3. I am trying to use bindingStyle=SimpleConsumer
>
> The problem is that I find some of the xml configuration examples a little
> confusing, particularly the references to
> *org.apache.camel.component.cxf.jaxrs.testbean.CustomerService*
> For the server, why is this class needed at all, couldn't
> *org.apache.camel.component.cxf.jaxrs.testbean.CustomerServiceResource* be
> used instead?
> The real implementation should be in the Camel routes.
>
> Then there are Tomcat, there are an OK example showing how to configure CXF
> endpoints for JAX-WS for use within Tomcat, but no similar documentation for
> CXFRS, I just assume that the JAX-WS related information is relevant for
> CXFRS too.
>
Yes, I'd expect that too, though some of CXF WS properties would not 
work with CXFRS

Thanks, Sergey
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-documentation-tp5752788.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>