CAMEL-8443: Added routeDescription to java dsl to make it easier to set it. And 
use that for route description over JMX.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4a0dfd0b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4a0dfd0b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4a0dfd0b

Branch: refs/heads/master
Commit: 4a0dfd0b6731b70453e46d2fe48f035991a070f7
Parents: d43d102
Author: Claus Ibsen <davscl...@apache.org>
Authored: Fri Mar 6 10:27:53 2015 +0100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Fri Mar 6 10:27:53 2015 +0100

----------------------------------------------------------------------
 .../src/main/resources/META-INF/spring/camel-context.xml          | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4a0dfd0b/examples/camel-example-management/src/main/resources/META-INF/spring/camel-context.xml
----------------------------------------------------------------------
diff --git 
a/examples/camel-example-management/src/main/resources/META-INF/spring/camel-context.xml
 
b/examples/camel-example-management/src/main/resources/META-INF/spring/camel-context.xml
index fb9a263..56e1f7e 100644
--- 
a/examples/camel-example-management/src/main/resources/META-INF/spring/camel-context.xml
+++ 
b/examples/camel-example-management/src/main/resources/META-INF/spring/camel-context.xml
@@ -32,12 +32,14 @@
     <jmxAgent id="agent" createConnector="true" loadStatisticsEnabled="true"/>
 
     <route>
+      <description>Route that creates input files</description>
       <from uri="timer://inbox?period=5000"/>
       <bean beanType="org.apache.camel.example.management.StockService" 
method="createRandomStocks"/>
       <to uri="file://target/inbox"/>
     </route>
 
     <route>
+      <description>Route that pickup incoming files and split into messages 
with stock prices</description>
       <from uri="file://target/inbox"/>
       <split>
         <xpath>/stocks/stock</xpath>
@@ -50,6 +52,7 @@
     </route>
 
     <route>
+      <description>Route that process stock prices and logs</description>
       <from uri="activemq:queue:stock"/>
       <delay>
         <constant>100</constant>

Reply via email to