Skip to content

Commit

Permalink
Merge pull request #6137 from jbaesner/WFCORE-6956
Browse files Browse the repository at this point in the history
[WFCORE-6956] Wrong endpoint-name if the JBoss server name and 'jboss…
  • Loading branch information
yersan authored Aug 22, 2024
2 parents df8544f + 1d36c8d commit 8563703
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ protected String getProcessName() {
@Override
protected void setProcessName(String processName) {
if (processName != null) {
if (primordialProperties.contains(SERVER_NAME)) {
if (primordialProperties.containsKey(SERVER_NAME)) {
// User specified both -Djboss.server.name and a standalone.xml <server name="xxx"/> value.
// Log a WARN
String rawServerProp = WildFlySecurityManager.getPropertyPrivileged(SERVER_NAME, serverName);
Expand All @@ -1151,7 +1151,7 @@ protected void setProcessName(String processName) {
serverName = processName;
WildFlySecurityManager.setPropertyPrivileged(SERVER_NAME, serverName);
processNameSet = true;
if (!primordialProperties.contains(NODE_NAME)) {
if (!primordialProperties.containsKey(NODE_NAME)) {
nodeName = serverName;
WildFlySecurityManager.setPropertyPrivileged(NODE_NAME, nodeName);
}
Expand Down

0 comments on commit 8563703

Please sign in to comment.