Enable MQTT in default broker config

This commit is contained in:
Martyn Taylor 2015-07-07 16:24:00 +01:00
parent 497d7f1573
commit 4ecbbc9388
2 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,8 @@ public class Create extends InputAbstract
private static final Integer HTTP_PORT = 8161;
private static final Integer MQTT_PORT = 1883;
public static final String BIN_ARTEMIS_CMD = "bin/artemis.cmd";
public static final String BIN_ARTEMIS_SERVICE_EXE = "bin/artemis-service.exe";
public static final String BIN_ARTEMIS_SERVICE_XML = "bin/artemis-service.xml";
@ -501,6 +503,7 @@ public class Create extends InputAbstract
filters.put("${amqp.port}", String.valueOf(AMQP_PORT + portOffset));
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("${data.dir}", data);
filters.put("${max-hops}", String.valueOf(maxHops));

View File

@ -55,7 +55,11 @@ ${connector-config.settings}
<!-- HornetQ Compatibility Acceptor. Enables ActiveMQ Artemis Core and STOMP for legacy HornetQ clients. -->
<acceptor name="hornetq">tcp://${host}:${hq.port}?protocols=HORNETQ,STOMP</acceptor>
<!-- MQTT Acceptor -->
<acceptor name="hornetq">tcp://${host}:${mqtt.port}?protocols=MQTT</acceptor>
</acceptors>
${cluster-security.settings}${cluster.settings}${replicated.settings}${shared-store.settings}
<security-settings>
<security-setting match="#">