On 03/06/14 07:45, techbird wrote:
Appreciated Sergey.

You confirmed what I thought, the throwExceptionOnFailure option is not
being processed by the cxfrs component.  I'll raise a jira for this, and
also that the default should be false.

Could someone chime in, and let me know if using cxfrs is the wrong
strategic direction for either invoking or consuming REST services
(using cxf) with Camel.

Ultimately it is about making basic HTTP invocations from the route.
So please don't worry about making a 'strategic' mistake by either using or not using cxfrs. As I said, try one of pure HTTP components.
If you prefer JAX-RS but also for example Jersey rather than CXF then
feel free to do a custom Camel Jersey module. There are many ways to achieve the goal of doing HTTP requests from the route

Sergey


Kind regards and thank you Bird.


On 02/06/14 21:11, Sergey Beryozkin wrote:
Hi

Can you please open a JIRA to get throwExceptionOnFailure=false
affecting the client ?
I can do it too, we can get it supported in CXFRS

Typically, a JAX-RS client dealing with JAX-RS Response should not get
the exceptions propagated but I guess it is defaulted to right now in
the CXFRS client

Cheers, Sergey

On 02/06/14 21:05, techbird wrote:
Thanks Sergey - was looking to use jaxrs/cxf.  Therefore thought cxfrs.

Any ideas about the throwExceptionOnFailure option for cxfrs, has anyone
being able to get it to work?

On 02/06/14 20:55, Sergey Beryozkin wrote:
Hi
camel jetty, http and restlet and possibly other components can be
used too

Sergey
On 02/06/14 20:00, techbird wrote:
Hi, two questions if I may.

(1) If I want to invoke REST services, is the cxfrs the preferred
component to use?

(2) Using cxfrs I cannot get throwExceptionOnFailure option to
work.  I
would like to be able to process errors (>400) in the route, rather
than
complicating the code with exceptions.  No matter what I try,
errors are
always raise an exception.  Is there any example code using the option
throwExceptionOnFailure=false?

Best regards, Bird.









--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to