Class JNDIAutomaticFactory

java.lang.Object
org.ofbiz.core.entity.transaction.JNDIAutomaticFactory
All Implemented Interfaces:
TransactionFactoryInterface

public class JNDIAutomaticFactory extends Object implements TransactionFactoryInterface
A TransactionFactory that automatically resolves the transaction factory from JNDI by making some informed guesses.

Due to the nature of the original JNDITransactionFactory, a lot of this code is cut and paste from there, and is essentially a copy.

  • Field Details

    • module

      public static final String module
    • dsCache

      protected static Map<String,Object> dsCache
    • trackerCache

      protected static Map<String,ConnectionTracker> trackerCache
    • CONFIGURATION

      protected static final Properties CONFIGURATION
    • AUTO_CONFIGURE_TRANS_MGR

      protected static final String AUTO_CONFIGURE_TRANS_MGR
      Value found in configuration file in the jndi-name field if we are to guess the the jndi-name of the (user-)transaction manager
    • TRANSMGR_NAME_GUESS

      protected static final String[] TRANSMGR_NAME_GUESS
      A list of guesses for the jndi-name of the transaction manager. Used if the user asks us to automagically configure this for them.
    • USR_TRANSMGR_NAME_GUESS

      protected static final String[] USR_TRANSMGR_NAME_GUESS
      A list of guesses for the jndi-name of the user transaction manager. Used if the user asks us to automagically configure this for them.
    • AUTO_CONFIGURE_JNDI_PREFIX

      protected static final String AUTO_CONFIGURE_JNDI_PREFIX
      Value found in configuration file as a prefix in the JNDI-NAME field if we are to guess the prefix of the JNDI-NAME
    • JNDI_PREFIX_GUESSES

      protected static final String[] JNDI_PREFIX_GUESSES
      A list of guesses that are to be used as prefixes for the JNDI-NAME field if the user asked us to auto-magically configure it for them.
    • conDetails

      protected static JNDIConnectionDetails conDetails
    • LIST_DELIMITER

      protected static final String LIST_DELIMITER
      See Also:
  • Constructor Details

    • JNDIAutomaticFactory

      public JNDIAutomaticFactory()
  • Method Details