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