Author: ningjiang
Date: Tue Mar 30 14:00:31 2010
New Revision: 929144

URL: http://svn.apache.org/viewvc?rev=929144&view=rev
Log:
CAMEL-1799 add tag for wiki document

Modified:
    
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/handler/ErrorHandlerDefinitionParser.xml

Modified: 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/handler/ErrorHandlerDefinitionParser.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/handler/ErrorHandlerDefinitionParser.xml?rev=929144&r1=929143&r2=929144&view=diff
==============================================================================
--- 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/handler/ErrorHandlerDefinitionParser.xml
 (original)
+++ 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/handler/ErrorHandlerDefinitionParser.xml
 Tue Mar 30 14:00:31 2010
@@ -23,10 +23,14 @@
        http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd
     ">
 
+<!-- START SNIPPET: example -->
+    
     <errorHandler id="loggingErrorHandler" 
xmlns="http://camel.apache.org/schema/spring"; type="LoggingErrorHandler" 
level="INFO" />
     
+    <!-- If don't specify type attribute, the type value will be set to 
DefaultErrorHandler -->
     <errorHandler id="errorHandler" 
xmlns="http://camel.apache.org/schema/spring"; />
     
+    <!-- You can define the redeliveryPolicy inside of the errorHandler -->
     <camel:errorHandler id="defaultErrorHandler" type="DefaultErrorHandler">
        <camel:redeliveryPolicy maximumRedeliveries="2" redeliveryDelay="0" 
logStackTrace="false" />
     </camel:errorHandler>
@@ -39,6 +43,12 @@
     
     <camel:errorHandler id="transactionErrorHandler" 
type="TransactionErrorHandler" transactionTemplateRef="PROPAGATION_REQUIRED" 
onRedeliveryRef="myErrorProcessor" />
     
+    <!-- You can also define the errorHandler inside the camelContext -->
+    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
+       <errorHandler id="noErrorHandler" type="NoErrorHandler"/>
+    </camelContext>
+ 
+ <!-- END SNIPPET: example -->     
     
     <bean id="dataSource" 
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
         <property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
@@ -55,11 +65,6 @@
     <bean id="PROPAGATION_REQUIRED" 
class="org.springframework.transaction.support.TransactionTemplate">
         <property name="transactionManager" ref="txManager"/>
     </bean>
-        
-    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
-       <camel:errorHandler id="noErrorHandler" type="NoErrorHandler"/>
-    </camelContext>
-   
-    <!-- END SNIPPET: example -->
+
 
 </beans>


Reply via email to