Here are the examples of the java api class org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionXARollbackMessage taken from open source projects.
1. ActiveMQSessionContext#xaRollback()
Project: activemq-artemis
File: ActiveMQSessionContext.java
File: ActiveMQSessionContext.java
@Override public void xaRollback(Xid xid, boolean wasStarted) throws ActiveMQException, XAException { SessionXARollbackMessage packet = new SessionXARollbackMessage(xid); SessionXAResponseMessage response = (SessionXAResponseMessage) sessionChannel.sendBlocking(packet, PacketImpl.SESS_XA_RESP); if (response.isError()) { throw new XAException(response.getResponseCode()); } }