camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1143272 - in /camel/trunk/components/camel-jpa/src: main/java/org/apache/camel/processor/interceptor/jpa/JpaTraceEventMessage.java test/java/org/apache/camel/processor/interceptor/JpaTraceEventMessageTest.java
Date Wed, 06 Jul 2011 07:17:45 GMT
Author: davsclaus
Date: Wed Jul  6 07:17:44 2011
New Revision: 1143272

URL: http://svn.apache.org/viewvc?rev=1143272&view=rev
Log:
CAMEL-4168: added routeId to jpa trace event message.

Modified:
    camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/processor/interceptor/jpa/JpaTraceEventMessage.java
    camel/trunk/components/camel-jpa/src/test/java/org/apache/camel/processor/interceptor/JpaTraceEventMessageTest.java

Modified: camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/processor/interceptor/jpa/JpaTraceEventMessage.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/processor/interceptor/jpa/JpaTraceEventMessage.java?rev=1143272&r1=1143271&r2=1143272&view=diff
==============================================================================
--- camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/processor/interceptor/jpa/JpaTraceEventMessage.java
(original)
+++ camel/trunk/components/camel-jpa/src/main/java/org/apache/camel/processor/interceptor/jpa/JpaTraceEventMessage.java
Wed Jul  6 07:17:44 2011
@@ -56,6 +56,7 @@ public class JpaTraceEventMessage implem
     protected String outBody;
     protected String outBodyType;
     protected String causedByException;
+    protected String routeId;
 
     public JpaTraceEventMessage() {
     }
@@ -197,6 +198,14 @@ public class JpaTraceEventMessage implem
         this.causedByException = causedByException;
     }
 
+    public String getRouteId() {
+        return routeId;
+    }
+
+    public void setRouteId(String routeId) {
+        this.routeId = routeId;
+    }
+
     @Transient
     public Exchange getTracedExchange() {
         return null;

Modified: camel/trunk/components/camel-jpa/src/test/java/org/apache/camel/processor/interceptor/JpaTraceEventMessageTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jpa/src/test/java/org/apache/camel/processor/interceptor/JpaTraceEventMessageTest.java?rev=1143272&r1=1143271&r2=1143272&view=diff
==============================================================================
--- camel/trunk/components/camel-jpa/src/test/java/org/apache/camel/processor/interceptor/JpaTraceEventMessageTest.java
(original)
+++ camel/trunk/components/camel-jpa/src/test/java/org/apache/camel/processor/interceptor/JpaTraceEventMessageTest.java
Wed Jul  6 07:17:44 2011
@@ -71,7 +71,7 @@ public class JpaTraceEventMessageTest ex
                 tracer.setUseJpa(true);
                 getContext().addInterceptStrategy(tracer);
 
-                from("direct:start").to("mock:result");
+                from("direct:start").routeId("foo").to("mock:result");
             }
         };
     }
@@ -86,6 +86,7 @@ public class JpaTraceEventMessageTest ex
         assertNotNull(db.getId());
         assertEquals("direct://start", db.getFromEndpointUri());
         assertEquals("mock://result", db.getToNode());
+        assertEquals("foo", db.getRouteId());
     }
 
     @SuppressWarnings("unchecked")



Mime
View raw message