getConf().setProperty("mail.smtp.port", "2345");
getConf().setProperty("from", "from@domain.com");
getConf().setProperty("replyTo", "replyTo@domain.com");
getConf().setProperty("defaultLanguage", "en-UK");
server = new HornetQTaskServer(taskService, 5446);
Thread thread = new Thread(server);
thread.start();
System.out.println("Waiting for the HornetQTask Server to come up");
while (!server.isRunning()) {
System.out.print(".");