camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r700025 - in /activemq/camel/trunk/components/camel-spring/src/test: java/org/apache/camel/spring/interceptor/ resources/org/apache/camel/spring/interceptor/
Date Mon, 29 Sep 2008 08:23:14 GMT
Author: davsclaus
Date: Mon Sep 29 01:23:13 2008
New Revision: 700025

URL: http://svn.apache.org/viewvc?rev=700025&view=rev
Log:
CAMEL-944: Added spring example how to configure the tracer.

Added:
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java
  (contents, props changed)
      - copied, changed from r699774, activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/tracerConfigurationTest.xml
      - copied, changed from r699774, activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/traceFormatterTest.xml
Modified:
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java

Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java?rev=700025&r1=700024&r2=700025&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java
Mon Sep 29 01:23:13 2008
@@ -22,7 +22,7 @@
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 /**
- *  Unit test for trace formatter configurd in spring XML.
+ *  Unit test for trace formatter configured in spring XML.
  */
 public class TraceFormatterTest extends SpringTestSupport {
 

Copied: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java
(from r699774, activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java?p2=activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java&p1=activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java&r1=699774&r2=700025&rev=700025&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TraceFormatterTest.java
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java
Mon Sep 29 01:23:13 2008
@@ -22,13 +22,13 @@
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 /**
- *  Unit test for trace formatter configurd in spring XML.
+ *  Unit test for tracer configuration configured in spring XML.
  */
-public class TraceFormatterTest extends SpringTestSupport {
+public class TracerConfigurationTest extends SpringTestSupport {
 
     protected AbstractXmlApplicationContext createApplicationContext() {
         return new ClassPathXmlApplicationContext(
-            "/org/apache/camel/spring/interceptor/traceFormatterTest.xml");
+            "/org/apache/camel/spring/interceptor/tracerConfigurationTest.xml");
     }
 
     public void testTraceFormatter() throws Exception {
@@ -39,5 +39,5 @@
 
         assertMockEndpointsSatisfied();
     }
-    
-}
+
+}
\ No newline at end of file

Propchange: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/interceptor/TracerConfigurationTest.java
------------------------------------------------------------------------------
    svn:mergeinfo = 

Copied: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/tracerConfigurationTest.xml
(from r699774, activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/traceFormatterTest.xml)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/tracerConfigurationTest.xml?p2=activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/tracerConfigurationTest.xml&p1=activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/traceFormatterTest.xml&r1=699774&r2=700025&rev=700025&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/traceFormatterTest.xml
(original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/interceptor/tracerConfigurationTest.xml
Mon Sep 29 01:23:13 2008
@@ -23,10 +23,12 @@
     ">
 
     <!-- SNIPPET START: e1 -->
-    <bean id="traceFormatter" class="org.apache.camel.processor.interceptor.TraceFormatter">
-        <property name="showBody" value="true"/>
-        <property name="showBodyType" value="false"/>
-        <property name="showBreadCrumb" value="false"/>
+    <!-- we can configure the tracer by defining the tracer bean and set the properties
as we like -->
+    <!-- the id name can be anything its the class that must be org.apache.camel.processor.interceptor.Tracer
-->
+    <bean id="camelTracer" class="org.apache.camel.processor.interceptor.Tracer">
+        <property name="traceExceptions" value="false"/>
+        <property name="traceInterceptors" value="true"/>
+        <property name="level" value="FATAL"/>
     </bean>
 
     <camelContext id="camel" trace="true" xmlns="http://activemq.apache.org/camel/schema/spring">



Mime
View raw message