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