Skip to content

Commit

Permalink
Fixed verticle class name and added deployment options with instances…
Browse files Browse the repository at this point in the history
… number
  • Loading branch information
ppatierno committed Jan 28, 2017
1 parent b019a1c commit f35ac72
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package io.vertx.example.mqtt;

import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
Expand All @@ -33,7 +34,10 @@ public static void main(String[] args) {

Vertx vertx = Vertx.vertx();

vertx.deployVerticle("io.vertx.mqtt.examples.verticle.MqttServerVerticle");
DeploymentOptions options = new DeploymentOptions();
options.setInstances(5);

vertx.deployVerticle("io.vertx.example.mqtt.MqttServerVerticle", options);

try {
System.in.read();
Expand Down

0 comments on commit f35ac72

Please sign in to comment.