This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ab4526432f0 Updated docs for master component to be a bit betteR
ab4526432f0 is described below
commit ab4526432f0e17a84a6d32578201c537b854b543
Author: Claus Ibsen <[email protected]>
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[]