Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2301 Deprecate JTA transaction manager from Geode
  3. GEODE-2302

Need ability to plug-in JNDI name of JTATransactionManager

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • transactions

    Description

      Currently, Geode looks up the following JNDI names for transaction manager:
      From JNDIInvoker

        private static String[][] knownJNDIManagers = {{"java:/TransactionManager", "JBoss"},
            {"java:comp/TransactionManager", "Cosminexus"}, // and many others
            {"java:appserver/TransactionManager", "GlassFish"}, {"java:pm/TransactionManager", "SunONE"},
            {"java:comp/UserTransaction", "Orion, JTOM, BEA WebLogic"},
            // not sure about the following but leaving it for backwards compat
            {"javax.transaction.TransactionManager", "BEA WebLogic"}};
      

      We should provide a System property for the JNDI name so that the workflow is something like:

      // get the system property value configured by administrator
      String utxPropVal = System.getProperty(“jta.UserTransaction”);
      // use JNDI to locate the UserTransaction object
      Context ctx = new InitialContext();
      UserTransaction utx = (UserTransaction)ctx.lookup(utxPropVal);
      // start transaction work..
      utx.begin();
      

      We should also add java:comp/env/TransactionManager to the list of known TransactionManagers as it is used by Atomikos.

      Attachments

        Activity

          People

            Unassigned Unassigned
            swapnil.bawaskar Swapnil Bawaskar
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: