This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-examples.git
The following commit(s) were added to refs/heads/master by this push: new b6a768d CAMEL-14885: camel-main - Configuration names preserve mixed case b6a768d is described below commit b6a768d7c784453c3d29f26103f012ec63d8070e Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Apr 28 14:31:24 2020 +0200 CAMEL-14885: camel-main - Configuration names preserve mixed case --- examples/camel-example-main-tiny/pom.xml | 9 +++++++++ .../src/main/java/org/apache/camel/example/MyRouteBuilder.java | 2 +- .../src/main/resources/application.properties | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/examples/camel-example-main-tiny/pom.xml b/examples/camel-example-main-tiny/pom.xml index f43412a..aca2f69 100644 --- a/examples/camel-example-main-tiny/pom.xml +++ b/examples/camel-example-main-tiny/pom.xml @@ -82,6 +82,15 @@ <build> <plugins> + <!-- to run the application --> + <plugin> + <groupId>org.apache.camel</groupId> + <artifactId>camel-maven-plugin</artifactId> + <version>${camel.version}</version> + <configuration> + <mainClass>org.apache.camel.example.MyApplication</mainClass> + </configuration> + </plugin> <!-- generate source code for configurer classes, which avoids reflection --> <plugin> <groupId>org.apache.camel</groupId> diff --git a/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java b/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java index 185c9df..26971ba 100644 --- a/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java +++ b/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java @@ -23,7 +23,7 @@ public class MyRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { from("timer:foo?period={{myPeriod}}") - .bean("mybean", "hello") + .bean("myBean", "hello") .log("${body}"); } } diff --git a/examples/camel-example-main-tiny/src/main/resources/application.properties b/examples/camel-example-main-tiny/src/main/resources/application.properties index 61379fc..e46716f 100644 --- a/examples/camel-example-main-tiny/src/main/resources/application.properties +++ b/examples/camel-example-main-tiny/src/main/resources/application.properties @@ -49,6 +49,6 @@ camel.main.file-configurations=src/main/data/*.properties myPeriod = 1000 # configure beans -camel.beans.mybean = #class:org.apache.camel.example.MyBean -camel.beans.mybean.hi = Hello +camel.beans.myBean = #class:org.apache.camel.example.MyBean +camel.beans.myBean.hi = Hello