ARTEMIS-244 - fixed property name

https://issues.apache.org/jira/browse/ARTEMIS-244
This commit is contained in:
Andy Taylor 2015-10-06 14:47:34 +01:00
parent 38a809fded
commit 35ab56fd91
1 changed files with 3 additions and 2 deletions

View File

@ -280,9 +280,10 @@ public class ColocatedHAManager implements HAManager {
integer += portOffset;
params.put("port", integer.toString());
}
Object serverId = params.get("server-id");
Object serverId = params.get("serverId");
if (serverId != null) {
params.put("server-id", serverId.toString() + "(" + name + ")");
Integer newid = Integer.parseInt(serverId.toString()) + portOffset;
params.put("serverId", newid.toString());
}
}
}