421422423424425426427428429430431
del.getReference().getMessage()); if (!del.getReference().getMessage().isReliable() || !recoverable) { //We can ack it now del.acknowledge(null); } else { //Add this to the holding area tx.setReliableDelivery(del);
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");
308309310311312313314315316317318
if (d == null) { throw new IllegalStateException("The message " + r + " has already been acknowledged!"); } d.acknowledge(tx); log.trace(this + " acknowledged " + r); // make sure I get rid of message if the transaction is rolled back if (tx != null)
380381382383384385386387388389390
if (trace) log.trace("Acknowledging.."); try { del.acknowledge(tx); } catch (Throwable t) { log.error("Failed to acknowledge " + del + " during recovery", t); }
12081209121012111212121312141215121612171218
{ Delivery del = (Delivery) iter.next(); try { del.acknowledge(null); } catch (Throwable t) { //Ignore }