From 56e4bd79bc01129c907852d53b2c299e60b04738 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Tue, 5 May 2015 11:08:52 +0100 Subject: [PATCH] use host argument properly with CLI create command --- .../apache/activemq/artemis/cli/commands/Create.java | 2 +- .../activemq/artemis/cli/commands/etc/broker.xml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java index 653776bdea..a3da9f1306 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java @@ -94,7 +94,7 @@ public class Create implements Action context.out.println(String.format("Creating ActiveMQ Artemis instance at: %s", directory.getCanonicalPath())); if (host == null) { - host = directory.getName(); + host = "localhost"; } HashMap filters = new HashMap(); diff --git a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/broker.xml b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/broker.xml index 35ca9c6e5f..7b92851990 100644 --- a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/broker.xml +++ b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/broker.xml @@ -38,21 +38,21 @@ under the License. - tcp://${activemq.remoting.default.host:localhost}:${activemq.remoting.default.port:61616} + tcp://${activemq.remoting.default.host:${host}}:${activemq.remoting.default.port:61616} - tcp://${activemq.remoting.default.host:localhost}:${activemq.remoting.default.port:61616} + tcp://${activemq.remoting.default.host:${host}}:${activemq.remoting.default.port:61616} - tcp://${activemq.remoting.amqp.host:localhost}:${activemq.remoting.amqp.port:5672}?protocols=AMQP + tcp://${activemq.remoting.amqp.host:${host}}:${activemq.remoting.amqp.port:5672}?protocols=AMQP - tcp://${activemq.remoting.stomp.host:localhost}:${activemq.remoting.stomp.port:61613}?protocols=STOMP + tcp://${activemq.remoting.stomp.host:${host}}:${activemq.remoting.stomp.port:61613}?protocols=STOMP - tcp://${activemq.remoting.hornetq.host:localhost}:${activemq.remoting.hornetq.port:5445}?protocols=CORE,STOMP + tcp://${activemq.remoting.hornetq.host:${host}}:${activemq.remoting.hornetq.port:5445}?protocols=CORE,STOMP ${cluster.settings}${replicated.settings}${shared-store.settings}