throw new MessagingException(e);
}
}
};
} else {
receiver = new AsyncReceiverPojo() {
public void onMessageExchange(MessageExchange exchange) throws MessagingException {
try {
if (delivered.get(exchange.getExchangeId()) == null) {
System.err.println("Message delivery rolled back: " + exchange.getExchangeId());
delivered.put(exchange.getExchangeId(), Boolean.TRUE);