Improving test fix
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/f57f5883 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/f57f5883 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/f57f5883 Branch: refs/heads/refactor-openwire Commit: f57f5883d50f1d01b20a8be92fdc24c005a4a49c Parents: 279a539 Author: Clebert Suconic <[email protected]> Authored: Thu Mar 17 12:50:30 2016 -0400 Committer: Clebert Suconic <[email protected]> Committed: Sat Mar 19 01:07:37 2016 -0400 ---------------------------------------------------------------------- .../artemis/core/protocol/openwire/OpenWireProtocolManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f57f5883/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java ---------------------------------------------------------------------- diff --git a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java index 804ab1a..b560076 100644 --- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java +++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireProtocolManager.java @@ -387,7 +387,7 @@ public class OpenWireProtocolManager implements ProtocolManager<Interceptor>, Cl brokerName = InetAddressUtil.getLocalHostName().toLowerCase(Locale.ENGLISH); } catch (Exception e) { - brokerName = "localhost"; + brokerName = server.getNodeID().toString(); } } return brokerName;
