This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6eeef5a6167bf4a5d63b14c4cd6beb4dd72ffa93
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Sep 1 08:39:16 2021 +0200

    CAMEL-16849 - Add at least one example for component in docs - 
Camel-ActiveMQ
---
 .../src/main/docs/activemq-component.adoc           | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/components/camel-activemq/src/main/docs/activemq-component.adoc 
b/components/camel-activemq/src/main/docs/activemq-component.adoc
index 0fd1d17..d5b1891 100644
--- a/components/camel-activemq/src/main/docs/activemq-component.adoc
+++ b/components/camel-activemq/src/main/docs/activemq-component.adoc
@@ -327,5 +327,26 @@ with the following path and query parameters:
 |===
 // endpoint options: END
 
+== Examples
+
+You'll need to provide a connectioFactory to the ActiveMQ Component, to have 
the following examples working.
+
+=== Producer Example
+
+[source,java]
+--------------------------------------------------------------------------------
+from("timer:mytimer?period=5000")
+        .setBody(constant("HELLO from Camel!"))
+        .to("jms:queue:HELLO.WORLD");
+--------------------------------------------------------------------------------
+
+=== Consumer Example
+
+[source,java]
+--------------------------------------------------------------------------------
+from("jms:queue:HELLO.WORLD")
+        .log("Received a message - ${body}");
+--------------------------------------------------------------------------------
+
 
 
include::{page-component-version}@camel-spring-boot::page$activemq-starter.adoc[]

Reply via email to