lastMessage.acknowledge();
      public void run()      {         try         {            //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages);            for (int j = 0; j < numRecoveries; j++)            {                              for (int i = 0; i < numMessages; i++)               {                  TextMessage tm = (TextMessage)cons.receive();                                    //log.info("Actual: " + tm.getIntProperty("JMSXDeliveryCount") + " expected:" + j);                                    if (tm == null)                  {                     failed = true;                  }                                    if (!tm.getText().equals("testing" + i))                  {                     failed = true;                  }                                    if (tm.getIntProperty("JMSXDeliveryCount") != j)                  {                     log.error("Delivery count not expected value");                     failed = true;                  }               }               sess.recover();                           }         }         catch (Exception e)         {            failed = true;         }      }