Skip to content

Commit

Permalink
Merge pull request #6510 from luiseufrasio/FISH-7993-remote-jms-broke…
Browse files Browse the repository at this point in the history
…r-fails-to-start-community

FISH-7993 : ignoring JMS PORT
  • Loading branch information
luiseufrasio authored Dec 15, 2023
2 parents 1fb6650 + ba2aecd commit aca2539
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public class StartServerHelper {

private static final String PROPS_HZ_PORT_NAME = "HZ_LISTENER_PORT";

private static final String PROPS_JMS_PROVIDER_PORT = "JMS_PROVIDER_PORT";

public StartServerHelper(Logger logger0, boolean terse0,
ServerDirs serverDirs0, GFLauncher launcher0,
String masterPassword0) {
Expand Down Expand Up @@ -358,7 +360,9 @@ private String validateAdditionalPortsForConnection() {
host = addr.getHost();
Map<String, String> propsFromXMl = this.launcher.getSysPropsFromXml();
Set<Map.Entry<String, String>> setOfPorts = propsFromXMl.entrySet().stream()
.filter(e -> !e.getKey().contains(PROPS_HZ_PORT_NAME)
.filter(e -> !e.getKey().contains(PROPS_HZ_PORT_NAME)
// Ignore JMS as it might be set to REMOTE
&& !e.getKey().contains(PROPS_JMS_PROVIDER_PORT)
&& e.getKey().contains(PROPS_PORT_NAME)).collect(Collectors.toSet());
for (Map.Entry<String, String> e: setOfPorts) {
if(!NetUtils.isPortFree(host, Integer.parseInt(e.getValue()))) {
Expand Down

0 comments on commit aca2539

Please sign in to comment.