You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/07/25 12:49:06 UTC
[camel] 03/04: Updated docs for master component to be a bit betteR
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 6cda20af06221742b9f62d8db0bfaf66c9280c42
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jul 25 11:45:53 2022 +0200
Updated docs for master component to be a bit betteR
---
components/camel-master/src/main/docs/master-component.adoc | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/components/camel-master/src/main/docs/master-component.adoc b/components/camel-master/src/main/docs/master-component.adoc
index e361f81c65a..c3d77dce89d 100644
--- a/components/camel-master/src/main/docs/master-component.adoc
+++ b/components/camel-master/src/main/docs/master-component.adoc
@@ -26,12 +26,17 @@ used to acquire the master lock. e.g.
[source,java]
----
-from("master:cheese:jms:foo").to("activemq:wine");
+from("master:cheese:jms:foo")
+ .to("activemq:wine");
----
-The above simulates the [Exclusive Consumers](http://activemq.apache.org/exclusive-consumer.html) type feature in
-ActiveMQ; but on any third party JMS provider which maybe doesn't support exclusive consumers.
+In this example, there master component ensures that the route is only active in one node, at any given time, in the cluster.
+So if there are 8 nodes in the cluster, then the master component will elect one route to be the leader, and only
+this route will be active, and hence only this route will consume messages from `jms:foo`.
+In case this route is stopped or unexpected terminated, then the master component will detect this,
+and re-elect another node to be active, which will then become active and start consuming messages from `jms:foo`.
+TIP: Apache ActiveMQ 5.x has such feature out of the box called https://activemq.apache.org/exclusive-consumer.html[Exclusive Consumers].
== URI format
@@ -129,7 +134,6 @@ camel.component.zookeeper.cluster.service.nodes = myzk:2181
Camel provides the following ClusterService implementations:
-- camel-atomix
- camel-consul
- camel-file
- camel-infinispan
@@ -139,5 +143,4 @@ Camel provides the following ClusterService implementations:
- camel-zookeeper
-
include::spring-boot:partial$starter.adoc[]