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-spring-boot-examples.git


The following commit(s) were added to refs/heads/master by this push:
     new e78b846  rabbitmq example should use the new spring-rabbitmq component
e78b846 is described below

commit e78b84683097ac4755fd30f464b001a49552e0bb
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Jan 12 16:45:20 2021 +0100

    rabbitmq example should use the new spring-rabbitmq component
---
 .../src/main/java/sample/camel/SampleCamelRouter.java                 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/camel-example-spring-boot-rabbitmq/src/main/java/sample/camel/SampleCamelRouter.java
 
b/camel-example-spring-boot-rabbitmq/src/main/java/sample/camel/SampleCamelRouter.java
index 49183d7..739d86a 100644
--- 
a/camel-example-spring-boot-rabbitmq/src/main/java/sample/camel/SampleCamelRouter.java
+++ 
b/camel-example-spring-boot-rabbitmq/src/main/java/sample/camel/SampleCamelRouter.java
@@ -33,6 +33,10 @@ public class SampleCamelRouter extends RouteBuilder {
             .transform(simple("Random number ${random(0,100)}"))
             .to("spring-rabbitmq:foo?routingKey=mykey");
 
+        from("timer:hello?period=2000")
+            .transform(simple("Bigger random number ${random(100,200)}"))
+            .to("spring-rabbitmq:foo?routingKey=mykey");
+
         from("spring-rabbitmq:foo?queues=myqueue&routingKey=mykey")
             .log("From RabbitMQ: ${body}");
     }

Reply via email to