Package org.eclipse.jetty.plus.jndi
Class Transaction
- java.lang.Object
-
- org.eclipse.jetty.plus.jndi.NamingEntry
-
- org.eclipse.jetty.plus.jndi.Transaction
-
public class Transaction extends NamingEntry
Transaction Class to represent a JTA UserTransaction impl.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
USER_TRANSACTION
-
Fields inherited from class org.eclipse.jetty.plus.jndi.NamingEntry
__contextName, _jndiName, _namingEntryNameString, _objectNameString, _scope
-
-
Constructor Summary
Constructors Constructor Description Transaction(javax.transaction.UserTransaction userTransaction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
bindToENC()
void
bindToENC(java.lang.String localName)
Allow other bindings of UserTransaction.void
unbindENC()
Unbind this Transaction from a java:comp-
Methods inherited from class org.eclipse.jetty.plus.jndi.NamingEntry
getJndiName, getJndiNameInScope, release, save, toString, toStringMetaData
-
-
-
-
Field Detail
-
USER_TRANSACTION
public static final java.lang.String USER_TRANSACTION
- See Also:
- Constant Field Values
-
-
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 classNamingEntry
- 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 classNamingEntry
-
-