512513514515516517518519520521522
} //Acknowledge on the remote queue stub Delivery del = new SimpleDelivery(remoteQueue, ref); del.acknowledge(tx); //For testing to simulate failures if (failBeforeCommit) { throw new Exception("Test failure before commit");
172173174175176177178179180181182
if (immediateAsynchronousAcknowledgment) { log.trace("simulating an asynchronous ACK that arrives before we return the delivery to channel"); try { delivery.acknowledge(null); } catch(Throwable t) { log.error("Cannot acknowledge", t); }
380381382383384385386387388389390
if (trace) log.trace("Acknowledging.."); try { del.acknowledge(tx); } catch (Throwable t) { log.error("Failed to acknowledge " + del + " during recovery", t); }