camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r731930 - in /activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception: RedeliveryPolicyRefTest.xml deadLetterChannelHandledExampleTest.xml exceptionBuilderWithRetryLoggingLevelSet.xml
Date Tue, 06 Jan 2009 12:53:59 GMT
Author: janstey
Date: Tue Jan  6 04:53:57 2009
New Revision: 731930

URL: http://svn.apache.org/viewvc?rev=731930&view=rev
Log:
Wiki snippet formatting changes

Modified:
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/RedeliveryPolicyRefTest.xml
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/deadLetterChannelHandledExampleTest.xml
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/exceptionBuilderWithRetryLoggingLevelSet.xml

Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/RedeliveryPolicyRefTest.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/RedeliveryPolicyRefTest.xml?rev=731930&r1=731929&r2=731930&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/RedeliveryPolicyRefTest.xml
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/RedeliveryPolicyRefTest.xml
Tue Jan  6 04:53:57 2009
@@ -25,41 +25,41 @@
     <!-- START SNIPPET: e1 -->
     <!-- here we define our redelivery policy using standard spring style -->
     <bean id="myRedeliveryPolicy" class="org.apache.camel.processor.RedeliveryPolicy">
-        <property name="maximumRedeliveries" value="1"/>
+      <property name="maximumRedeliveries" value="1" />
     </bean>
 
 
     <!-- this is our POJO bean with our business logic defined as a plain spring bean
-->
-    <bean id="orderService" class="org.apache.camel.spring.processor.onexception.OrderService"/>
+    <bean id="orderService" class="org.apache.camel.spring.processor.onexception.OrderService"
/>
 
     <!-- this is the camel context where we define the routes -->
     <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
 
-        <onException>
-            <!-- the exception is full qualified names as plain strings -->
-            <!-- there can be more just add a 2nd, 3rd exception element (unbounded) -->
-            <exception>org.apache.camel.spring.processor.onexception.OrderFailedException</exception>
-            <exception>java.lang.IllegalArgumentException</exception>
-            <!-- here we reference our redelivy policy -->
-            <redeliveryPolicy ref="myRedeliveryPolicy"/>
-            <!-- mark this as handled -->
-            <handled>
-              <constant>true</constant>
-            </handled>
-            <!-- let our order service handle this exception, call the orderFailed method
-->
-            <bean ref="orderService" method="orderFailed"/>
-            <!-- and since this is a unit test we use mock for assertions -->
-            <to uri="mock:error"/>
-        </onException>
-
-        <route>
-            <!-- the route -->
-            <from uri="direct:start"/>
-            <!-- in the normal route then route to our order service and call handleOrder
method -->
-            <bean ref="orderService" method="handleOrder"/>
-            <!-- and since this is a unit test we use mock for assertions -->
-            <to uri="mock:result"/>
-        </route>
+      <onException>
+        <!-- the exception is full qualified names as plain strings -->
+        <!-- there can be more just add a 2nd, 3rd exception element (unbounded) -->
+        <exception>org.apache.camel.spring.processor.onexception.OrderFailedException</exception>
+        <exception>java.lang.IllegalArgumentException</exception>
+        <!-- here we reference our redelivy policy -->
+        <redeliveryPolicy ref="myRedeliveryPolicy" />
+        <!-- mark this as handled -->
+        <handled>
+          <constant>true</constant>
+        </handled>
+        <!-- let our order service handle this exception, call the orderFailed method
-->
+        <bean ref="orderService" method="orderFailed" />
+        <!-- and since this is a unit test we use mock for assertions -->
+        <to uri="mock:error" />
+      </onException>
+
+      <route>
+        <!-- the route -->
+        <from uri="direct:start" />
+        <!-- in the normal route then route to our order service and call handleOrder
method -->
+        <bean ref="orderService" method="handleOrder" />
+        <!-- and since this is a unit test we use mock for assertions -->
+        <to uri="mock:result" />
+      </route>
 
     </camelContext>
     <!-- END SNIPPET: e1 -->

Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/deadLetterChannelHandledExampleTest.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/deadLetterChannelHandledExampleTest.xml?rev=731930&r1=731929&r2=731930&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/deadLetterChannelHandledExampleTest.xml
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/deadLetterChannelHandledExampleTest.xml
Tue Jan  6 04:53:57 2009
@@ -25,35 +25,35 @@
     <!-- START SNIPPET: e1 -->
 
     <!-- this is our POJO bean with our business logic defined as a plain spring bean
-->
-    <bean id="orderService" class="org.apache.camel.spring.processor.onexception.OrderService"/>
+    <bean id="orderService" class="org.apache.camel.spring.processor.onexception.OrderService"
/>
 
     <!-- this is the camel context where we define the routes -->
     <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
 
-	    <onException>
-	        <!-- the exception is full qualified names as plain strings -->
-	        <!-- there can be more just add a 2nd, 3rd exception element (unbounded) -->
-	        <exception>org.apache.camel.spring.processor.onexception.OrderFailedException</exception>
-	        <!-- we can set the redelivery policy here as well -->
-	        <redeliveryPolicy maximumRedeliveries="1"/>
-	        <!-- mark this as handled -->
-	        <handled>
-	          <constant>true</constant>
-	        </handled>
-	        <!-- let our order service handle this exception, call the orderFailed method
-->
-	        <bean ref="orderService" method="orderFailed"/>
-	        <!-- and since this is a unit test we use mock for assertions -->
-	        <to uri="mock:error"/>
-	    </onException>
-
-        <route>
-            <!-- the route -->
-            <from uri="direct:start"/>
-            <!-- in the normal route then route to our order service and call handleOrder
method -->
-            <bean ref="orderService" method="handleOrder"/>
-            <!-- and since this is a unit test we use mock for assertions -->
-            <to uri="mock:result"/>
-        </route>
+      <onException>
+        <!-- the exception is full qualified names as plain strings -->
+        <!-- there can be more just add a 2nd, 3rd exception element (unbounded) -->
+        <exception>org.apache.camel.spring.processor.onexception.OrderFailedException</exception>
+        <!-- we can set the redelivery policy here as well -->
+        <redeliveryPolicy maximumRedeliveries="1" />
+        <!-- mark this as handled -->
+        <handled>
+          <constant>true</constant>
+        </handled>
+        <!-- let our order service handle this exception, call the orderFailed method
-->
+        <bean ref="orderService" method="orderFailed" />
+        <!-- and since this is a unit test we use mock for assertions -->
+        <to uri="mock:error" />
+      </onException>
+
+      <route>
+        <!-- the route -->
+        <from uri="direct:start" />
+        <!-- in the normal route then route to our order service and call handleOrder
method -->
+        <bean ref="orderService" method="handleOrder" />
+        <!-- and since this is a unit test we use mock for assertions -->
+        <to uri="mock:result" />
+      </route>
 
     </camelContext>
     <!-- END SNIPPET: e1 -->

Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/exceptionBuilderWithRetryLoggingLevelSet.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/exceptionBuilderWithRetryLoggingLevelSet.xml?rev=731930&r1=731929&r2=731930&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/exceptionBuilderWithRetryLoggingLevelSet.xml
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/exceptionBuilderWithRetryLoggingLevelSet.xml
Tue Jan  6 04:53:57 2009
@@ -38,39 +38,38 @@
     <!-- this is the camel context where we define the routes -->
     <camelContext xmlns="http://activemq.apache.org/camel/schema/spring" errorHandlerRef="dlc">
 
-        <onException>
-            <exception>java.lang.NullPointerException</exception>
-            <redeliveryPolicy maximumRedeliveries="0"/>
-            <setHeader headerName="messageInfo">
-              <constant>Damm a NPE</constant>
-            </setHeader>
-            <to uri="mock:error"/>
-        </onException>
+      <onException>
+        <exception>java.lang.NullPointerException</exception>
+        <redeliveryPolicy maximumRedeliveries="0" />
+        <setHeader headerName="messageInfo">
+          <constant>Damm a NPE</constant>
+        </setHeader>
+        <to uri="mock:error" />
+      </onException>
 
-       <!-- START SNIPPET: e1 -->
-        <onException>
-            <exception>java.io.IOException</exception>
-            <redeliveryPolicy 
-                redeliveryDelay="1000"
-                maximumRedeliveries="3"
-                maximumRedeliveryDelay="10000"
-                backOffMultiplier="1.0"
-                useExponentialBackOff="true"
-                retryAttemptedLogLevel="TRACE"
-                retriesExhaustedLogLevel="FATAL"               
-            />
-            <setHeader headerName="messageInfo">
-              <constant>Damm somekind of IO exception</constant>
-            </setHeader>
-            <to uri="mock:error"/>
-        </onException>
-        <!-- END SNIPPET: e1 -->
+      <!-- START SNIPPET: e1 -->
+      <onException>
+        <exception>java.io.IOException</exception>
+        <redeliveryPolicy 
+          redeliveryDelay="1000" 
+          maximumRedeliveries="3" 
+          maximumRedeliveryDelay="10000" 
+          backOffMultiplier="1.0"
+          useExponentialBackOff="true" 
+          retryAttemptedLogLevel="TRACE" 
+          retriesExhaustedLogLevel="FATAL" />
+        <setHeader headerName="messageInfo">
+          <constant>Damm somekind of IO exception</constant>
+        </setHeader>
+        <to uri="mock:error" />
+      </onException>
+      <!-- END SNIPPET: e1 -->
 
-        <route>
-            <from uri="direct:a"/>               
-            <process ref="myExceptionThrowingProcessor"/>
-            <to uri="mock:result"/>
-        </route>
+      <route>
+        <from uri="direct:a" />
+        <process ref="myExceptionThrowingProcessor" />
+        <to uri="mock:result" />
+      </route>
 
     </camelContext>
 </beans>



Mime
View raw message