cCXF PoJo example

One Star

cCXF PoJo example

Hi
I'm stuck with implementing a route with a cCXF component in PoJo mode.
Is there an example I could use that shows me how to do it?
- Is it better to start with a wsdl or a Bean Interface?
- I read that I have to "attach a jar file with the service, request and response classes". How?
I'd be very grateful for a full example.
Thanks,
Laci
Community Manager

Re: cCXF PoJo example

One Star

Re: cCXF PoJo example

Hi
yes, of course I've read the documentation, but it is not very helpful.
It would be much more helpful if it would show a POJO example with a user defined class as the parameter of the WebService and how to instantiate it in the route following the cCXF component. (at lease for me ;-)
Any help with that?
Thanks
Laci
One Star

Re: cCXF PoJo example

Ok, I've figured it out.
For those who have the same problem:
Generate your server class and pojos, pack them in a jar and add them with a cConfig to your route.
If you add a cBean to your route after the cCXF then camel automagically does the mapping.