final Message msg = new Message(topic, data);
final XAResource xares = messageProducer.getXAResource();
final Xid xid =
XIDGenerator.createXID(this.formatIdIdGenerator.incrementAndGet(), this.UNIQUE_QUALIFIER);
xares.start(xid, XAResource.TMNOFLAGS);
final SendResult result = messageProducer.sendMessage(msg);
if (!result.isSuccess() || i % 2 == 0) {
xares.end(xid, XAResource.TMFAIL);
xares.rollback(xid);
}
else {