public void restartScenario() throws Exception { IOUtil.OUT().println("RESTARTING SCENARIO"); stopTransport(); IScenario scenario = getScenario(); scenario.tearDown(); scenario.setUp(); startTransport(); IOUtil.OUT().println("RESTARTING SCENARIO - FINISHED"); }
public void onMessage(Message message) { try { Object object = ((ObjectMessage) message).getObject(); IOUtil.OUT() .println( "\n------> MESSAGE for " + name + ": " + object + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ message.acknowledge(); } catch (JMSException ex) { IOUtil.print(ex); } }