if (log.isTraceEnabled()) { log.trace("ack mode is " + Util.acknowledgmentModeToString(ackMode)+ ", acknowledged on " + del); }
if (trace) { log.trace("ack mode is " + Util.acknowledgmentModeToString(ackMode)+ ", acknowledged on " + del); }
   public Object handlePostDeliver(Invocation invocation) throws Throwable   {       MethodInvocation mi = (MethodInvocation)invocation;            int ackMode = getState(invocation).getAcknowledgeMode();            if (ackMode != Session.SESSION_TRANSACTED && ackMode != Session.CLIENT_ACKNOWLEDGE)      {         SessionDelegate del = (SessionDelegate)mi.getTargetObject();                  //We acknowledge immediately         del.acknowledge();         if (log.isTraceEnabled()) { log.trace("ack mode is " + Util.acknowledgmentModeToString(ackMode)+ ", acknowledged on " + del); }      }      return null;   }