JDBC driver does not support XA, hence cannot be a participant in two

阅读: 评论:0

JDBC driver does not support XA, hence cannot be a participant in two

JDBC driver does not support XA, hence cannot be a participant in two

weblogic配置数据库连接池及连接后发布应用,登录应用后,控制台报错:
--------------------------------------------------------------------------------
nested within:
--------------------------------------------------------------------------------
ansaction.RollbackException: Could not prepare resource 'weblogic.jdb
c.wrapper.JTSXAResourceImpl
JDBC driver does not support XA, hence cannot be a participant in two-phase comm
it. To force this participation, set the EnableTwoPhaseCommit property on the co
rresponding JDBCTxDataSource property, to true. Pool = TestPool - with nested ex
ception:
[ansaction.xa.XAException: JDBC driver does not support XA, hence cannot
be a participant in two-phase commit. To force this participation, set the Enab
leTwoPhaseCommit property on the corresponding JDBCTxDataSource property, to tru
e. Pool = TestPool]
ansaction.internal.TransactionImpl.throwRollbackException(
TransactionImpl.java:1644)
ansaction.internal.ServerTransactionImpl.internalCommit(Se
rverTransactionImpl.java:296)
ansaction.internal.ServerTransactionImplmit(ServerTran
sactionImpl.java:217)
at weblogic.ejb20.ute(MDListener.java:404)
at weblogic.ejb20.ansactionalOnMessage(MDListener.
java:308)
at weblogic.ejb20.Message(MDListener.java:273)
at weblogic.jms.Message(JMSSession.java:2550)
at weblogic.jms.ute(JMSSession.java:2470)
at weblogic.ute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
.>

解决方法:
配置你的tx Data Source .选上 Emulate Two-Phase Commit for non-XA Driver和Row Prefetch Enabled

本文发布于:2024-01-31 15:40:33,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170668683229588.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:driver   JDBC   support   participant   XA
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23