ARTEMIS-533 change HTTP port from CLI

This commit is contained in:
jbertram 2016-05-23 10:03:14 -05:00 committed by Clebert Suconic
parent 316845cc4f
commit 6993aa9d84
1 changed files with 4 additions and 1 deletions

View File

@ -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));