java.lang.Object
org.eclipse.jetty.ee10.plus.jndi.NamingEntry
org.eclipse.jetty.ee10.plus.jndi.Transaction
Transaction
Class to represent a JTA UserTransaction impl.
-
Field Summary
FieldsFields inherited from class org.eclipse.jetty.ee10.plus.jndi.NamingEntry
__contextName, _jndiName, _namingEntryNameString, _objectNameString, _scope -
Constructor Summary
ConstructorsConstructorDescriptionTransaction(String scope, jakarta.transaction.UserTransaction userTransaction) -
Method Summary
Modifier and TypeMethodDescriptionvoidAllow other bindings of UserTransaction.static voidbindTransactionToENC(String scope) Bind the transaction to a scope.voidUnbind this Transaction from a java:compMethods inherited from class org.eclipse.jetty.ee10.plus.jndi.NamingEntry
getJndiName, getJndiNameInScope, release, save, toString, toStringMetaData
-
Field Details
-
USER_TRANSACTION
- See Also:
-
-
Constructor Details
-
Transaction
public Transaction(String scope, jakarta.transaction.UserTransaction userTransaction) throws NamingException - Parameters:
scope- the scope, usually an environment like ee9, ee10userTransaction- the UserTransaction- Throws:
NamingException- if there was a problem registering the transaction
-
-
Method Details
-
bindTransactionToENC
Bind the transaction to a scope.- Parameters:
scope- the scope level, usually an environment eg ee9 or ee10- Throws:
NamingException- if there is a naming problem
-
bindToENC
Allow other bindings of UserTransaction. These should be in ADDITION to java:comp/UserTransaction- Overrides:
bindToENCin 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:
unbindENCin classNamingEntry
-