log.trace("rollback() called");
log.info("rollback() called");
      public void onMessage(Message m)      {         try         {            TextMessage tm = (TextMessage)m;                        log.trace("Got message:" + tm.getText() + " count is " + count);                        if (count == 0)            {               if (!("a".equals(tm.getText())))               {                  log.trace("Should be a but was " + tm.getText());                  failed = true;                  latch.release();               }               if (transacted)               {                  sess.rollback();                  log.trace("rollback() called");               }               else               {                  log.trace("Calling recover");                  sess.recover();                  log.trace("recover() called");               }            }                        if (count == 1)            {               if (!("a".equals(tm.getText())))               {                  log.trace("Should be a but was " + tm.getText());                  failed = true;                  latch.release();               }            }            if (count == 2)            {               if (!("b".equals(tm.getText())))               {                  log.trace("Should be b but was " + tm.getText());                  failed = true;                  latch.release();               }            }            if (count == 3)            {               if (!("c".equals(tm.getText())))               {                  log.trace("Should be c but was " + tm.getText());                  failed = true;                  latch.release();               }               if (transacted)               {                  sess.commit();               }               else               {                  log.trace("Acknowledging session");                  tm.acknowledge();               }               latch.release();            }            count++;         }         catch (JMSException e)         {            log.trace("Caught JMSException", e);            failed = true;            latch.release();         }      }