[英]Infinispan transaction - can not get TransactionManager from Spring4
I need to configure Infinispan as cache provider for my Spring project. 我需要将Infinispan配置为Spring项目的缓存提供程序。 It's because his transaction functions.
这是因为他的交易起作用。 The problem is with Spring using PlatformTransactionManager and Infinispan needs javax.transaction.TransactionManager.
问题是Spring使用PlatformTransactionManager,而Infinispan需要javax.transaction.TransactionManager。 Is it possible to configure Infinispan TransactionManagerLookup with Spring provided PlatformTransactionManager?
是否可以使用Spring提供的PlatformTransactionManager配置Infinispan TransactionManagerLookup?
I am using JpaTransactionManager as TransactionManager. 我正在使用JpaTransactionManager作为TransactionManager。 Version of Infinispan is 7.2.3.Final, Spring4.
Infinispan的版本是7.2.3.Final,Spring4。
Infinispan TransactionManagerLookup returns a JTA TransactionManager implementation. Infinispan TransactionManagerLookup返回JTA TransactionManager实现。 However you are using a PlatformTransactionManager which has nothing to do with JTA.
但是,您正在使用与JTA无关的PlatformTransactionManager 。
So there are at least 2 ways of of dealing with this: 因此,至少有两种处理方式:
It looks like JpaTransactionManager is able to bind only one target and I will need JtaTransactionManager. 看起来JpaTransactionManager只能绑定一个目标,而我将需要JtaTransactionManager。 Hopefully it's possible to bind it under Spring's PlatformTransactionManager.
希望可以将其绑定到Spring的PlatformTransactionManager下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.