messageRefs.addLast(ref, ref.getPriority());
boolean first = messageRefs.addLast(ref, ref.getPriority());
      public void afterCommit()      {         for(Iterator i = refs.iterator(); i.hasNext(); )         {            MessageReference ref = (MessageReference)i.next();            if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); }            messageRefs.addLast(ref, ref.getPriority());                        //FIXME            //For JMS We only need to call channel.deliver(null) once for the whole transaction            //However some of the core tests still assume all deliver() semantics i.e. delivery            //is attempted for all messages in channel on commit, hence they will fail if we only            //call deliver once            channel.deliver(null);         }         txToAddReferenceCallbacks.remove(tx);      } 