Package org.apache.ignite.cache.jta

## Interface CacheTmLookup

- All Known Implementing Classes:
    `CacheJndiTmLookup`, `CacheReflectionTmLookup`

      public interface CacheTmLookup

  Allows grid to use different transactional systems. Implement this interface to look up native transaction manager within your environment. Transaction manager lookup is configured via `TransactionConfiguration.getTxManagerLookupClassName()` method.

  The following implementations are provided out of the box:

  - `CacheJndiTmLookup` utilizes a configured JNDI name to look up a transaction manager.
  - `CacheReflectionTmLookup` uses reflection to call a method on a given class to get to transaction manager.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `@Nullable javax.transaction.TransactionManager` | `getTm()` | Gets Transaction Manager (TM).

- - ### Method Detail

    - #### getTm

          @Nullable
          @Nullable javax.transaction.TransactionManager getTm()
                                                        throws IgniteException

      Gets Transaction Manager (TM).
      Returns:
        TM or `null` if TM cannot be looked up.
      Throws:
        `IgniteException` - In case of error.