camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@evosent.com>
Subject Re: Camel CXF RS
Date Wed, 05 Mar 2014 10:32:29 GMT
Unfortunately that tutorial only showcases Camel as a client, but not as a
service provider.

If you want to build a JAX-RS service, I suggest you use the new
SimpleBinding to make sure that your @HeaderParams, @PathParams,
@QueryParams, etc. are injected as Camel headers, and that your request
payload is injected as the Camel IN message body.

This will rid you of manually processing a MessageContentsList object and
tightly coupling your route implementation to the order of parameters in
the JAX-RS method signature.

More info in our camel-cxfrs Wiki page.

Regards,

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Wed, Mar 5, 2014 at 10:14 AM, David Parker <dfparker@gmail.com> wrote:

> Or try this very good tutorial project
> https://github.com/santoshjoshi/camel-cxfrs-example
>
>
> On Tue, Mar 4, 2014 at 10:22 PM, Charlie Mordant <cmordant1@gmail.com
> >wrote:
>
> > Hi,
> >
> > You can dig starting from here:
> >
> >
> https://github.com/Tcharl/net.osgiliath.hello/blob/master/net.osgiliath.hello.routes/src/main/java/net/osgiliath/hello/routes/HelloRoute.java
> > .
> >
> > REGARDS,
> >
> >
> > 2014-03-04 19:16 GMT+01:00 CamelTester <vijaykonjerla@gmail.com>:
> >
> > > Hi,
> > > Can anyone give an complete camel CXF RS example?
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > > http://camel.465427.n5.nabble.com/Camel-CXF-RS-tp5748301.html
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >
> >
> >
> >
> > --
> > Cordialement,
> >
> > Charlie Mordant
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message