【问题标题】:Configuring Transaction Manager in spring boot embedded tomcat在 Spring Boot 嵌入式 tomcat 中配置事务管理器
【发布时间】:2015-07-06 16:10:38
【问题描述】:

我正在使用带有嵌入式tomcat 8.0.20 的Spring boot 1.2.3。

在常规tomcat 中,我们可以在上下文中配置事务管理器。

示例:

<Transaction factory="com.atomikos.icatch.jta.UserTransactionFactory"/>

有什么方法可以在Spring boot嵌入式tomcat注册T/X管理器?

【问题讨论】:

    标签: spring-boot atomikos transactionmanager embedded-tomcat-8


    【解决方案1】:

    查看http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-jta.html,了解如何使用 Spring Boot 启用 atomicos 事务管理器。

    【讨论】:

    • 我浏览了这个文档。我无法将 T/X 管理器配置为在 JNDI 中绑定。我所有的实现都将尝试从 JNDI 获取 T/X 管理器并使用它(纯 JDBC 代码。没有 JPA/JdbcTemplate 或 @Transactional 注释)。你能指点我如何配置 T/X 管理器和绑定 ti JNDI。
    猜你喜欢
    • 2017-08-08
    • 2015-04-24
    • 2021-04-30
    • 1970-01-01
    • 2017-12-01
    • 1970-01-01
    • 2021-03-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多