camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pratibhaG <>
Subject RE: How to handle different types of errors?
Date Fri, 23 May 2008 10:42:47 GMT

I want to tap message from these two routes for different Exception types:
1) jbi:endpoint:http://test/MyService/endpoint -->
2) jbi:endpoint:http://test/MyService/endpoint

there can be many types of exceptions like NullPointerException,
ConnectionException or my custom exceptions on both the routes how can I
handle the situation?

I tried this
It works fine. that is when a message flows from
jbi:endpoint:http://test/MyService/endpoint to
jbi:endpoint:http://test/MyProviderService/providerEndpoint if
ConnectionException arises then it is sent to
jbi:endpoint:http://test/errorStorageService/errorStorageEndpoint after 4
times retrial.

But on this path there can be other exceptions and I want to take different
action based on the exception type.

please help
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message