1 /* 2 * $Id: DefaultMessagingExceptionStrategy.java 22772 2011-08-27 15:20:15Z dfeist $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 11 package org.mule.exception; 12 13 import org.mule.api.MuleContext; 14 15 /** 16 * This is the default exception handler for flows and services. The handler logs errors 17 * and will forward the message and exception to an exception endpoint if one is set 18 * on this Exception strategy. If an endpoint is configured via the <default-exception-strategy> 19 * element, a Dead Letter Queue pattern is assumed and so the transaction will commit. 20 * Otherwise, the transaction will rollback, possibly causing the source message to be 21 * redelivered (depends on the transport). 22 */ 23 public class DefaultMessagingExceptionStrategy extends AbstractMessagingExceptionStrategy 24 { 25 /** Called by MuleNamespaceHandler for <default-exception-strategy> element. */ 26 public DefaultMessagingExceptionStrategy() 27 { 28 this(null); 29 } 30 31 public DefaultMessagingExceptionStrategy(MuleContext muleContext) 32 { 33 super(muleContext); 34 } 35 }