Modified: 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteTest.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteTest.xml?rev=767405&r1=767404&r2=767405&view=diff
==============================================================================
--- 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteTest.xml
 (original)
+++ 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteTest.xml
 Wed Apr 22 08:08:21 2009
@@ -24,8 +24,8 @@
 
     <!-- START SNIPPET: e1 -->
     <!-- setup our error handler as the deal letter channel -->
-    <bean id="errorHandler" 
class="org.apache.camel.builder.DeadLetterChannelBuilder">
-        <property name="deadLetterUri" value="mock:error"/>
+    <bean id="deadLetter" 
class="org.apache.camel.builder.DeadLetterChannelBuilder">
+        <property name="deadLetterUri" value="mock:dead"/>
     </bean>
 
     <!-- the default error handler used in the 2nd route -->
@@ -37,7 +37,7 @@
     <!-- this is the camel context where we define the routes -->
     <camelContext xmlns="http://camel.apache.org/schema/spring";>
 
-        <route errorHandlerRef="errorHandler">
+        <route errorHandlerRef="deadLetter">
             <from uri="direct:start"/>
             <onException>
                 
<exception>org.apache.camel.spring.processor.onexception.OrderFailedException</exception>

Modified: 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteWithDefaultErrorHandlerTest.xml
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteWithDefaultErrorHandlerTest.xml?rev=767405&r1=767404&r2=767405&view=diff
==============================================================================
--- 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteWithDefaultErrorHandlerTest.xml
 (original)
+++ 
camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/onexception/onExceptionSubRouteWithDefaultErrorHandlerTest.xml
 Wed Apr 22 08:08:21 2009
@@ -26,14 +26,16 @@
     <!-- 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"/>
 
-    <!-- this is the camel context where we define the routes -->
-    <camelContext xmlns="http://camel.apache.org/schema/spring";>
+    <bean id="defaultError" 
class="org.apache.camel.builder.DefaultErrorHandlerBuilder">
+    </bean>
 
+    <!-- this is the camel context where we define the routes -->
+    <camelContext trace="true" xmlns="http://camel.apache.org/schema/spring";>
+        <!-- TODO: bug with no error handler ref = eg default it does not work 
-->
         <route>
             <from uri="direct:start"/>
             <onException>
                 
<exception>org.apache.camel.spring.processor.onexception.OrderFailedException</exception>
-                <redeliveryPolicy maximumRedeliveries="1"/>
                 <handled>
                     <constant>true</constant>
                 </handled>


Reply via email to