Class HotRodTransactionManagerLookup

  • All Implemented Interfaces:
    org.infinispan.commons.tx.lookup.TransactionManagerLookup

    public class HotRodTransactionManagerLookup
    extends Object
    implements org.infinispan.commons.tx.lookup.TransactionManagerLookup
    HotRod client provides its own GenericTransactionManagerLookup that is able to locate variety of JTA transaction implementation present in the runtime. We need to make sure we use JTA only when it is detected by other parts of Keycloak (such as KeycloakTransactionManager), therefore we implemented this custom TransactionManagerLookup that locates JTA transaction using JtaTransactionManagerLookup provider
    • Constructor Detail

      • HotRodTransactionManagerLookup

        public HotRodTransactionManagerLookup​(KeycloakSession session)
    • Method Detail

      • getTransactionManager

        public javax.transaction.TransactionManager getTransactionManager()
                                                                   throws Exception
        Specified by:
        getTransactionManager in interface org.infinispan.commons.tx.lookup.TransactionManagerLookup
        Throws:
        Exception