Re: Route statistics not updated on Exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Route statistics not updated on Exception

Claus Ibsen-2
Hi

If its a SOAP Fault then its not the same as an exception, and
therefore not captured in that statistics.

There is an option on camel to transform SOAP faults to exception with
handleFault=true

On Thu, Jun 28, 2018 at 4:20 PM, Martin Pelikán <[hidden email]> wrote:

> Hello,
>
> I have a problem with route statistics not being updated whenever my
> Camel-CXF consumer throws Exception, be it SecurityException or
> ValidatonException. Route-list command shows still the same number of
> incoming messages. Nothing is in failed, inflight nor in total. CXF returns
> correct SOAP Fault back. Is it because message doesn't go through <from>
> element and thus Exchange cannot be created?
>
> karaf@trun()> route-list
>  Context           Route                             Status
> Total #       Failed #     Inflight #   Uptime
>  -------           -----                             ------
> -------       --------     ----------   ------
> context      ws-listener   Started                   0              0
>         0   13 minutes
>
> code snippet:
>
> <cxfEndpoint id="myCXF"...>
>
> <camelContext xmlns="http://camel.apache.org/schema/spring"
> streamCache="true" id="context" trace="false"
> useMDCLogging="false" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
> ">
>
> <route id="ws-listener">
>  <from uri="cxf:bean:myCXF" />
>  <....some logic..>
> </route>
>
> Camel version: 2.17.6
>
> Operating system: Linux Ubuntu 16.04, Windows 8
> Java 8, various versions
>
> Thank you,
> Martin



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2