System.out.println("Waiting for the HornetQTask Server to come up");
while (!server.isRunning()) {
System.out.print(".");
Thread.sleep( 50 );
}
setClient(new TaskClient(new HornetQTaskClientConnector("client 1",
new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener()))));
getClient().connect("127.0.0.1", 5446);
WSHumanTaskHandler handler = new WSHumanTaskHandler();
handler.setClient(getClient());
setHandler(handler);