【问题标题】:TransactionManager for OFBIZ on Websphere 8.3Websphere 8.3 上 OFBIZ 的 TransactionManager
【发布时间】:2017-05-12 12:44:57
【问题描述】:

我们正在将应用程序从 Weblogic 迁移到 Websphere 应用程序服务器,该应用程序是在旧版本的 Apache OFBIZ 上构建的,我们无法获取 TransactionManager 以绑定到 OFBIZ。

我们目前的尝试如下:

org.springframework.transaction.jta.WebSphereUowTransactionManager manager = new org.springframework.transaction.jta.WebSphereUowTransactionManager(com.ibm.wsspi.uow.UOWManagerFactory.getUOWManager());
transactionManager = (TransactionManager)manager.getTransactionManager(); 

我们还尝试查找 JNDI:“java:comp/TransactionManager”、“java:appserver/TransactionManager”、 "java:pm/TransactionManager", "java:/TransactionManager"

他们都没有返回 TransactionManager。

在 Weblogic 中,查找工作并且 TransactionManager 的 weblogic 实现也实现了 UserTransaction。

在 Websphere 中,我们可以查找 UserTransaction,但不能查找 TransactionManager。

有什么想法吗?

【问题讨论】:

    标签: java transactions jta websphere-8 transactionmanager


    【解决方案1】:

    可以使用以下 WebSphere Application Server API(在 Liberty 和传统版本中都可用)来获取事务管理器:

    com.ibm.tx.jta.TransactionManagerFactory.getTransactionManager()

    link to JavaDoc in knowledge center

    【讨论】:

    • 看起来很有希望,它正在交付一个事务管理器,目前正在运行测试。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-05
    相关资源
    最近更新 更多