Class Transaction


  • public class Transaction
    extends NamingEntry
    Transaction Class to represent a JTA UserTransaction impl.
    • Field Detail

      • USER_TRANSACTION

        public static final java.lang.String USER_TRANSACTION
        See Also:
        Constant Field Values
    • Constructor Detail

      • Transaction

        public Transaction​(javax.transaction.UserTransaction userTransaction)
                    throws javax.naming.NamingException
        Throws:
        javax.naming.NamingException
    • Method Detail

      • bindToENC

        public static void bindToENC()
                              throws javax.naming.NamingException
        Throws:
        javax.naming.NamingException
      • bindToENC

        public void bindToENC​(java.lang.String localName)
                       throws javax.naming.NamingException
        Allow other bindings of UserTransaction. These should be in ADDITION to java:comp/UserTransaction
        Overrides:
        bindToENC in class NamingEntry
        Parameters:
        localName - the local name to bind
        Throws:
        javax.naming.NamingException - if unable to bind
        See Also:
        NamingEntry.bindToENC(java.lang.String)
      • unbindENC

        public void unbindENC()
        Unbind this Transaction from a java:comp
        Overrides:
        unbindENC in class NamingEntry