在使用 javax.transaction.Transactional 时,在Websphere中使用Spring . 在本地或在Tomcat中运行代码按预期工作,但在Websphere中运行时, javax.transaction.Transactional 注释似乎不会导致包含JPA-EntityManager的事务 . 用_960523的Spring版本替换 javax.transaction.Transactional 注释解决了这个问题 .

我们想知道解决此问题需要什么 . 我发现了这个Stackoverflow问题:spring-jta-transaction-with-jpa-and-jndi-datasource-for-websphere链接到文章:0609_alcott-pdf.pdf

给出的建议是将Spring配置为使用WebSphereUowTransactionManager作为事务管理器 .

stackoverflow的答案来自2012年 . 但是由于我们运行的是一个非常古老的WebSphere 7版本,它可能与我们相关 .

有没有人遇到类似或相关的问题?

Update

使用以下依赖项:spring-core:4.3.9 hibernate.core:4.2.15.Final spring-boot starter:1.5.4.RELEASE