There are some JIRA tickets to integrate camel-cxf with rest-dsl. However this requires some changes in CXF to facilitate this.
Some of the CXF committers from Talend said they would like to work on that, but they don't seem to had the time yet to work on this. That said you can always code REST services using plain JAX-RS java code style also. Or if using Spring Boot then how they do it with their controllers. Camel in Action 2nd ed book has a full chapter on REST and various ways to use it with Camel. On Mon, Oct 31, 2016 at 5:02 PM, DariusX <dariuscoo...@gmail.com> wrote: > I would like to expose some Camel routes via REST, and am considering using > the REST DSL. (I do not have pre-existing REST-based web-service > components.) > > Is there any reason/advantage to using camel-cxfrs or some other such > component that supports REST in such a scenario? > > It appears to me that the Camel REST DSL is always the way to go unless one > has legacy reasons to use something else, but I'd appreciate someone telling > me if that's a wrong assumption. Also, is there a page somewhere on the > Camel site that would speak to this: i.e. the motivation of using one over > the other? > > thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-REST-vs-Cxfrs-tp5789523.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2