if (startActiveMq) {
String dataDir = System.getProperty("falcon.embeddedmq.data", "target/");
int mqport = Integer.valueOf(System.getProperty("falcon.emeddedmq.port", "61616"));
LOG.info("Starting activemq at port " + mqport + " with data dir " + dataDir);
BrokerService broker = new BrokerService();
broker.setUseJmx(false);
broker.setDataDirectory(dataDir);
broker.addConnector("vm://localhost");
broker.addConnector("tcp://0.0.0.0:" + mqport);
broker.setSchedulerSupport(true);
broker.start();
}
EmbeddedServer server = new EmbeddedServer(appPort, appPath);
server.start();
}