You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by CamelTester <vi...@gmail.com> on 2014/03/04 19:16:39 UTC

Camel CXF RS

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.

Re: Camel CXF RS

Posted by Raul Kripalani <ra...@evosent.com>.
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 <df...@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 <vi...@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
> >
>

Re: Camel CXF RS

Posted by David Parker <df...@gmail.com>.
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 <cm...@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 <vi...@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
>

Re: Camel CXF RS

Posted by Charlie Mordant <cm...@gmail.com>.
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 <vi...@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