java - hibernate.transaction.manager_lookup_class VS hibernate.transaction.jta.platform

标签 java hibernate websphere

我的 persistence.xml 中有这个 hibernate.transaction.manager_lookup_class 属性,然后在运行我的应用程序时收到此警告消息。

使用已弃用的 org.hibernate.transaction.TransactionManagerLookup 策略 [hibernate.transaction.manager_lookup_class],使用较新的 org.hibernate.service.jta.platform.spi.JtaPlatform 策略 [hibernate.transaction.jta.platform]

我不知道这两个属性有什么不同?它们有什么用?

谁能解释一下它们的区别和用途

我正在使用 hibernate 4 和 websphere 8.5

最佳答案

除了事务管理器之外,JtaPlatform 还提供更多类似事务的集成,特别是:

  • 如何找到事务管理器
  • 如何进行用户交易
  • 如何注册事务同步

您可以在 GitHub 上查看完整的 JtaPlatform 界面:https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/engine/transaction/jta/platform/spi/JtaPlatform.java

关于java - hibernate.transaction.manager_lookup_class VS hibernate.transaction.jta.platform,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54088461/

相关文章:

java - Android Http POST 请求不起作用

java - JVisualVM-Xverify :none does not solve Redefinition failed with error 62

Websphere Message Broker 消息流中的 Log4jNode 抛出错误

java - 我可以在 websphere 中使用外部 jdk 路径吗

java - Hibernate - n+1 一对一的选择查询

java - 启动服务器 Webshere 7 时出错

Java 流操作调用

java - [Java]读取并处理文件

java - org.hibernate.id.SequenceHiLoGenerator 给出了错误的 id

hibernate 搜索排序