提交 89f44f64 authored 作者: Thomas Mueller's avatar Thomas Mueller

JdbcXAConnection.start() does not support TMJOIN. Issue 189.

上级 2ec10192
...@@ -348,7 +348,11 @@ implements XAConnection, XAResource ...@@ -348,7 +348,11 @@ implements XAConnection, XAResource
if (flags == TMRESUME) { if (flags == TMRESUME) {
return; return;
} }
if (currentTransaction != null) { if (flags == TMJOIN) {
if (currentTransaction != null && !currentTransaction.equals(xid)) {
throw new XAException(XAException.XAER_RMERR);
}
} else if (currentTransaction != null) {
throw new XAException(XAException.XAER_NOTA); throw new XAException(XAException.XAER_NOTA);
} }
try { try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论