From 6993aa9d844801b90fa7145d9d393a75f970b9d9 Mon Sep 17 00:00:00 2001 From: jbertram Date: Mon, 23 May 2016 10:03:14 -0500 Subject: [PATCH] ARTEMIS-533 change HTTP port from CLI --- .../org/apache/activemq/artemis/cli/commands/Create.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 3162bb48b1..84587c05f4 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 @@ -99,6 +99,9 @@ public class Create extends InputAbstract { @Option(name = "--default-port", description = "The port number to use for the main 'artemis' acceptor (Default: 61616)") int defaultPort = DEFAULT_PORT; + @Option(name = "--http-port", description = "The port number to use for embedded web server (Default: 8161)") + int httpPort = HTTP_PORT; + @Option(name = "--name", description = "The name of the broker (Default: same as host)") String name; @@ -524,7 +527,7 @@ public class Create extends InputAbstract { filters.put("${stomp.port}", String.valueOf(STOMP_PORT + portOffset)); filters.put("${hq.port}", String.valueOf(HQ_PORT + portOffset)); filters.put("${mqtt.port}", String.valueOf(MQTT_PORT + portOffset)); - filters.put("${http.port}", String.valueOf(HTTP_PORT + portOffset)); + filters.put("${http.port}", String.valueOf(httpPort + portOffset)); filters.put("${data.dir}", data); filters.put("${max-hops}", String.valueOf(maxHops));