Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

    <!-- ============================================================ -->
    <!-- Ikasan default exception resolver                            -->
    <!-- ============================================================ -->
    <bean id="exceptionResolver" class="org.ikasan.exceptionResolver.MatchingExceptionResolver">

        <constructor-arg>
            <list>
			    <!-- =======================================================
			        Read as - 
			        "if Exception IsInstanceOf EndpointException, then return RollbackRetryAction" 
			    -->
			    <bean class="org.ikasan.exceptionResolver.matcher.MatcherBasedExceptionGroup">
			        <constructor-arg>
			            <bean class="org.hamcrest.core.IsInstanceOf">
			                <constructor-arg value="org.ikasan.spec.component.endpoint.EndpointException"/>
			            </bean>
			        </constructor-arg>
			        <constructor-arg>
			            <bean class="org.ikasan.exceptionResolver.action.RetryAction">
			                <property name="delay" value="30000"/>
			            </bean>
			        </constructor-arg>
			    </bean>
            </list>
        </constructor-arg>
    </bean>    

</beans>
New to GrepCode? Check out our FAQ X