Top Description Fields Constructors Methods
org.eclipse.jetty.plus.jndi

public Class Transaction

extends NamingEntry
Class Inheritance
Imports
javax.naming.Context, .InitialContext, .LinkRef, .NameNotFoundException, .NamingException, .Reference, org.eclipse.jetty.util.jndi.NamingUtil, org.slf4j.Logger, .LoggerFactory

Transaction Class to represent a JTA UserTransaction impl.

Field Summary

Modifier and TypeField and Description
private static final Logger
public static final String
Inherited from org.eclipse.jetty.plus.jndi.NamingEntry:
__contextName_jndiName_namingEntryNameString_objectNameString_scope

Constructor Summary

AccessConstructor and Description
protected
Transaction(String
the environment in which to bind the UserTransaction
scope
,
Object
a UserTransaction or a Reference to a UserTransaction
entry
)

public
Transaction(String
the environment in which to bind the UserTransaction
scope
,
Reference
a Reference to a UserTransaction
userTransactionRef
)

Method Summary

Modifier and TypeMethod and Description
private void
bindToComp()

Insist on the java:comp/UserTransaction binding

public void
bindToENC(String
the local name to bind
localName
)

Overrides org.eclipse.jetty.plus.jndi.NamingEntry.bindToENC.

Allow other bindings of UserTransaction.

public static void
public void
unbindENC()

Overrides org.eclipse.jetty.plus.jndi.NamingEntry.unbindENC.

Unbind this Transaction from a java:comp

Inherited from org.eclipse.jetty.plus.jndi.NamingEntry:
getJndiNamegetJndiNameInScopegetNamingEntryNameInScopereleasesavetoStringtoStringMetaData

Field Detail

LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.plus.jndi.NamingEntry.LOG.

USER_TRANSACTIONback to summary
public static final String USER_TRANSACTION

Constructor Detail

Transactionback to summary
protected Transaction(String scope, Object entry) throws NamingException
Parameters
scope:String

the environment in which to bind the UserTransaction

entry:Object

a UserTransaction or a Reference to a UserTransaction

Exceptions
NamingException:
if there was a problem re
Transactionback to summary
public Transaction(String scope, Reference userTransactionRef) throws NamingException
Parameters
scope:String

the environment in which to bind the UserTransaction

userTransactionRef:Reference

a Reference to a UserTransaction

Exceptions
NamingException:
if there was a problem re

Method Detail

bindToCompback to summary
private void bindToComp() throws NamingException

Insist on the java:comp/UserTransaction binding

bindToENCback to summary
public void bindToENC(String localName) throws NamingException

Overrides org.eclipse.jetty.plus.jndi.NamingEntry.bindToENC.

Allow other bindings of UserTransaction. These should be in ADDITION to java:comp/UserTransaction

Parameters
localName:String

Doc from org.eclipse.jetty.plus.jndi.NamingEntry.bindToENC.

the local name to bind

Annotations
@Override
Exceptions
NamingException:

Doc from org.eclipse.jetty.plus.jndi.NamingEntry.bindToENC.

if unable to bind

See Also
NamingEntry#bindToENC(String)
bindTransactionToENCback to summary
public static void bindTransactionToENC(String scope) throws NamingException
unbindENCback to summary
public void unbindENC()

Overrides org.eclipse.jetty.plus.jndi.NamingEntry.unbindENC.

Unbind this Transaction from a java:comp

Annotations
@Override