You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/09/01 06:41:17 UTC

[camel] branch main updated (15a0f58 -> 362402a)

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

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


    from 15a0f58  Sync deps
     new 6eeef5a  CAMEL-16849 - Add at least one example for component in docs - Camel-ActiveMQ
     new 362402a  CAMEL-16849 - Add at least one example for component in docs - Camel-ActiveMQ

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/docs/activemq-component.adoc           | 21 +++++++++++++++++++++
 .../modules/ROOT/pages/activemq-component.adoc      | 21 +++++++++++++++++++++
 2 files changed, 42 insertions(+)

[camel] 01/02: CAMEL-16849 - Add at least one example for component in docs - Camel-ActiveMQ

Posted by ac...@apache.org.
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 <an...@gmail.com>
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[]

[camel] 02/02: CAMEL-16849 - Add at least one example for component in docs - Camel-ActiveMQ

Posted by ac...@apache.org.
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 362402a2470c088e517d422ad0566df33afd0c80
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 1 08:40:44 2021 +0200

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

diff --git a/docs/components/modules/ROOT/pages/activemq-component.adoc b/docs/components/modules/ROOT/pages/activemq-component.adoc
index eb6071c..eed541d 100644
--- a/docs/components/modules/ROOT/pages/activemq-component.adoc
+++ b/docs/components/modules/ROOT/pages/activemq-component.adoc
@@ -329,5 +329,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[]