Skip to content

Commit

Permalink
Call handleResponse when exception resolver rethrows exception
Browse files Browse the repository at this point in the history
Issue: SWS-824
  • Loading branch information
poutsma committed Apr 15, 2013
1 parent 51d615f commit 3a09d29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ protected final void dispatch(MessageContext messageContext) throws Exception {
EndpointAdapter endpointAdapter = getEndpointAdapter(mappedEndpoint.getEndpoint());
endpointAdapter.invoke(messageContext, mappedEndpoint.getEndpoint());

// Apply handleResponse methods of registered interceptors
triggerHandleResponse(mappedEndpoint, interceptorIndex, messageContext);
}
catch (NoEndpointFoundException ex) {
// No triggering of interceptors if no endpoint is found
Expand All @@ -243,9 +245,8 @@ protected final void dispatch(MessageContext messageContext) throws Exception {
catch (Exception ex) {
Object endpoint = mappedEndpoint != null ? mappedEndpoint.getEndpoint() : null;
processEndpointException(messageContext, endpoint, ex);
triggerHandleResponse(mappedEndpoint, interceptorIndex, messageContext);
}
// Apply handleResponse methods of registered interceptors
triggerHandleResponse(mappedEndpoint, interceptorIndex, messageContext);
triggerAfterCompletion(mappedEndpoint, interceptorIndex, messageContext, null);
}
catch (NoEndpointFoundException ex) {
Expand Down

0 comments on commit 3a09d29

Please sign in to comment.