]
Thomas Darimont commented on JGRP-2477:
---------------------------------------
Likewise - thanks for the quick turnaround :)
Reintroduce support for configuring a JChannel via URL
------------------------------------------------------
Key: JGRP-2477
URL:
https://issues.redhat.com/browse/JGRP-2477
Project: JGroups
Issue Type: Enhancement
Affects Versions: 4.2.3
Reporter: Thomas Darimont
Assignee: Bela Ban
Priority: Minor
Fix For: 4.2.4
Infinispan 9.4.x (9.4.19) uses a URL to load the JGroups configuration from the
infinispan configuration.
When an external jgroups stack configuration file is used:
See: "Using an external JGroups file" in
https://infinispan.org/docs/9.4.x/user_guide/user_guide.html#using_an_ext...
When creating the JGroups stack, infinispan uses the constructor in
org.jgroups.JChannel#JChannel(...) which takes a URL as parameter.
See:
https://github.com/infinispan/infinispan/blob/9.4.x/core/src/main/java/or...
However this constructor is only present in versions up-to including 4.0.22
https://github.com/belaban/JGroups/blob/4.0.22/src/org/jgroups/JChannel.j...
and was removed in later versions.
Because of this users of infinispan 9.4.x, who use the "Using an external JGroups
file" configuration approach cannot upgrade to new JGroups versions, like 4.2.3.
In order to ease upgrading to newer JGroups versions with Infinispan 9.4.x. it would be
very kind if the constructor with the URL parameter
could be added back.
I created a pull request to add the constructor
{org.jgroups.JChannel#JChannel(java.net.URL)} to master, which can also be cherry-picked
for the 4.x branch.