mirror of https://github.com/apache/activemq.git
AMQ-3022 - Improve error message when a transaction is attempted to be suspended/resumed
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1032658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4907ada2f4
commit
4411ff6680
|
@ -334,12 +334,17 @@ public class TransactionContext implements XAResource {
|
|||
throw new XAException(XAException.XAER_PROTO);
|
||||
}
|
||||
|
||||
// if ((flags & TMJOIN) == TMJOIN) {
|
||||
// // TODO: verify that the server has seen the xid
|
||||
// }
|
||||
// if ((flags & TMJOIN) == TMRESUME) {
|
||||
// // TODO: verify that the xid was suspended.
|
||||
// }
|
||||
String txSuspendResumeNotSupportMsg = "The suspend/resume of a transaction "
|
||||
+ "is not supported. Instead it is recommended that a new JMS session be created.";
|
||||
|
||||
if ((flags & TMJOIN) == TMJOIN) {
|
||||
throw new XAException(txSuspendResumeNotSupportMsg);
|
||||
// TODO: verify that the server has seen the xid
|
||||
}
|
||||
if ((flags & TMRESUME) == TMRESUME) {
|
||||
throw new XAException(txSuspendResumeNotSupportMsg);
|
||||
// TODO: verify that the xid was suspended.
|
||||
}
|
||||
|
||||
// associate
|
||||
synchronizations = null;
|
||||
|
|
Loading…
Reference in New Issue