Package org.eclipse.jetty.plus.jndi
Class Transaction
java.lang.Object
org.eclipse.jetty.plus.jndi.NamingEntry
org.eclipse.jetty.plus.jndi.Transaction
- Direct Known Subclasses:
Transaction
Transaction
Class to represent a JTA UserTransaction impl.
-
Field Summary
Fields inherited from class org.eclipse.jetty.plus.jndi.NamingEntry
__contextName, _jndiName, _namingEntryNameString, _objectNameString, _scope
-
Constructor Summary
ModifierConstructorDescriptionprotected
Transaction
(String scope, Object entry) Transaction
(String scope, Reference userTransactionRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Allow other bindings of UserTransaction.static void
bindTransactionToENC
(String scope) void
Unbind this Transaction from a java:compMethods inherited from class org.eclipse.jetty.plus.jndi.NamingEntry
getJndiName, getJndiNameInScope, getNamingEntryNameInScope, release, save, toString, toStringMetaData
-
Field Details
-
USER_TRANSACTION
- See Also:
-
-
Constructor Details
-
Transaction
- Parameters:
scope
- the environment in which to bind the UserTransactionentry
- a UserTransaction or a Reference to a UserTransaction- Throws:
NamingException
- if there was a problem re
-
Transaction
- Parameters:
scope
- the environment in which to bind the UserTransactionuserTransactionRef
- a Reference to a UserTransaction- Throws:
NamingException
- if there was a problem re
-
-
Method Details
-
bindTransactionToENC
- Throws:
NamingException
-
bindToENC
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:
NamingException
- if unable to bind- See Also:
-
unbindENC
public void unbindENC()Unbind this Transaction from a java:comp- Overrides:
unbindENC
in classNamingEntry
-