Abstracted configuration part to use filesystem or classpath files

This commit is contained in:
andrea
2015-08-22 15:35:11 +02:00
parent b6554eb0ac
commit 560559fad2
18 changed files with 309 additions and 76 deletions
@@ -1,13 +1,17 @@
package org.eclipse.moquette.testembedded;
import org.eclipse.moquette.server.ClasspathConfig;
import org.eclipse.moquette.server.IConfig;
import org.eclipse.moquette.server.Server;
import java.io.IOException;
public class EmbeddedLauncher {
public static void main(String[] args) throws InterruptedException, IOException {
final IConfig classPathConfig = new ClasspathConfig();
final Server mqttBroker = new Server();
mqttBroker.startServer();
mqttBroker.startServer(classPathConfig);
System.out.println("Broker started");
Thread.sleep(1000);
System.out.println("Stopping broker");