1
2
3
4
5
6
7
8
9
10
11 package org.mule.test.integration.transaction;
12
13 import org.mule.api.MuleMessage;
14 import org.mule.api.processor.MessageProcessor;
15 import org.mule.api.routing.RoutingException;
16 import org.mule.exception.AbstractMessagingExceptionStrategy;
17
18
19
20
21 public class RollbackRoutingExceptionStrategy extends AbstractMessagingExceptionStrategy
22 {
23
24 public void handleRoutingException(MuleMessage message, MessageProcessor endpoint, Throwable t)
25 {
26 logger.debug("handleRoutingException: endpoint=" + endpoint + " message=" + message);
27 defaultHandler(t);
28 handleTransaction(t);
29 routeException(message, endpoint, t);
30 }
31
32 }