Class Transaction

java.lang.Object
org.eclipse.jetty.plus.jndi.NamingEntry
org.eclipse.jetty.ee8.plus.jndi.Transaction

public class Transaction extends org.eclipse.jetty.plus.jndi.NamingEntry
Transaction Class to represent a JTA UserTransaction impl.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.eclipse.jetty.plus.jndi.NamingEntry

    __contextName, _jndiName, _namingEntryNameString, _objectNameString, _scope
  • Constructor Summary

    Constructors
    Constructor
    Description
    Transaction(String scope, javax.transaction.UserTransaction userTransaction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bindToENC(String localName)
    Allow other bindings of UserTransaction.
    static void
     
    void
    Unbind this Transaction from a java:comp

    Methods inherited from class org.eclipse.jetty.plus.jndi.NamingEntry

    getJndiName, getJndiNameInScope, getNamingEntryNameInScope, release, save, toString, toStringMetaData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Transaction

      public Transaction(String scope, javax.transaction.UserTransaction userTransaction) throws NamingException
      Parameters:
      scope - the environment in which to bind the UserTransaction
      userTransaction - The UserTransaction
      Throws:
      NamingException - if there was a problem re
  • Method Details

    • bindTransactionToENC

      public static void bindTransactionToENC(String scope) throws NamingException
      Throws:
      NamingException
    • bindToENC

      public void bindToENC(String localName) throws NamingException
      Allow other bindings of UserTransaction. These should be in ADDITION to java:comp/UserTransaction
      Overrides:
      bindToENC in class org.eclipse.jetty.plus.jndi.NamingEntry
      Throws:
      NamingException
      See Also:
      • NamingEntry.bindToENC(java.lang.String)
    • unbindENC

      public void unbindENC()
      Unbind this Transaction from a java:comp
      Overrides:
      unbindENC in class org.eclipse.jetty.plus.jndi.NamingEntry