mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-28 06:19:21 +00:00
This closes #1909
This commit is contained in:
commit
bbf0fb495b
@ -1156,7 +1156,13 @@ public class OpenWireConnection extends AbstractRemotingConnection implements Se
|
||||
@Override
|
||||
public Response processRollbackTransaction(TransactionInfo info) throws Exception {
|
||||
Transaction tx = lookupTX(info.getTransactionId(), null, true);
|
||||
AMQSession amqSession = (AMQSession) tx.getProtocolData();
|
||||
|
||||
final AMQSession amqSession;
|
||||
if (tx != null) {
|
||||
amqSession = (AMQSession) tx.getProtocolData();
|
||||
} else {
|
||||
amqSession = null;
|
||||
}
|
||||
|
||||
if (info.getTransactionId().isXATransaction() && tx == null) {
|
||||
throw newXAException("Transaction '" + info.getTransactionId() + "' has not been started.", XAException.XAER_NOTA);
|
||||
|
Loading…
x
Reference in New Issue
Block a user