예제 #1
0
  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");
  }
예제 #2
0
파일: JMSTest.java 프로젝트: merks/cdo
 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);
   }
 }