Claus Ibsen created CAMEL-27812:
-----------------------------------
Summary: camel-jgroups: on a shared channel only the last consumer
receives, a second cluster name is ignored, a String destination broadcasts
Key: CAMEL-27812
URL: https://issues.apache.org/jira/browse/CAMEL-27812
Project: Camel
Issue Type: Bug
Components: camel-jgroups
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-jgroups for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31139).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. Only the last consumer receives on a shared channel
Each JGroupsConsumer calls {{channel.setReceiver(...)}} on the component
channel, so with several consumers on the shared channel only the last one gets
messages.
Proposed change: dispatch from one receiver to all consumers, or fail when a
second consumer uses the shared channel.
h4. 2. A second cluster name is silently ignored
Endpoints that share the component channel but name another cluster connect the
already connected channel; JGroups ignores it and the endpoint joins the first
cluster.
Proposed change: fail, or create a channel per cluster name.
h4. 3. A String destination header broadcasts to the whole cluster
CamelJGroupsDest is read as an org.jgroups.Address; a String value converts to
null, and a null destination sends to every member.
Proposed change: fail when the header cannot be converted, instead of
broadcasting.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)