Raymond created CAMEL-23050:
-------------------------------

             Summary: Add getLastHandledError to ManagedRouteMBean and 
ManagedRouteGroupMBean API
                 Key: CAMEL-23050
                 URL: https://issues.apache.org/jira/browse/CAMEL-23050
             Project: Camel
          Issue Type: Improvement
            Reporter: Raymond


This issue is related to this issue:

https://issues.apache.org/jira/browse/CAMEL-23049

Currently, you only get the unhandled last error. I would like to get the last 
*handled* error (on route and group level) instead.

*Note:* An additional thought, would it be practical if there is a general 
"Error Registry" or "Error Factory" that automatically stores and indexes 
failed exchanges for later querying?

I can then have some fluent API (like a FluentProducer) to query. Examples 
(pseudo-code):


{code:java}
//get last 10 failures that are handled of route 123

errorRegistry
  .last(10)
  .handled(true)
  .routeId("123")

//get last 3 failures that are unhandled of endpoint ftp:myServer

errorRegistry
  .last(3)
  .handled(false)
  .endpoint("ftp:myServer")

//get last unhandled failure of group OrderIntegration 
errorRegistry
  .group("orderIntegration")  {code}

This then could give back a map with RouteID and RouteError object.

 

 

 






 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to