Class HotRodTransactionManagerLookup

java.lang.Object
org.keycloak.models.map.storage.hotRod.transaction.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 Details

    • HotRodTransactionManagerLookup

      public HotRodTransactionManagerLookup(KeycloakSession session)
  • Method Details

    • getTransactionManager

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