[ 
https://issues.apache.org/jira/browse/CAMEL-7476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14041929#comment-14041929
 ] 

Gareth Bird commented on CAMEL-7476:
------------------------------------

Understood Sergey - you've saved me a lot of time. I'll recode my example and 
let Camel unmarshall.

I've always had a choice which way I architect the system I am shaping.  Should 
I use CXFRS or CXF/JAXRS as an endpoint for REST services.  If I use CXF 
directly I can use CAMEL for mediation and call out to routes by proxy (DI).   
If I use CXFRS - I can keep both the endpoint/mediation logic in Camel.  Too 
much choice :)

Thanks for your assistance (again), Gareth

> cxfrs throwExceptionOnFailure option not working
> ------------------------------------------------
>
>                 Key: CAMEL-7476
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7476
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.13.0, 2.13.1
>            Reporter: Gareth Bird
>            Assignee: Willem Jiang
>            Priority: Minor
>
> (1) The cxfrs option throwExceptionOnFailure=true does not suppress 
> exceptions from being thrown when an invoked REST service returns a http 
> status > 207.  i.e. the following does not work:
> ...
> .to("cxfrs:bean:rsClient?throwExceptionOnFailure=false")
> ....
> (2) The cxfrs throwExceptionOnFailure option should default to false; to make 
> it easier to process status codes in the route.
> When invoking REST services, the logic is currently complicated by the fact 
> that common status' need to be processed in exception handlers. i,e (404 not 
> found, 412 precondition failed).  It would be more useful to filter on 
> statuses with a main route.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to