|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jrunx.tyrex.tm.RuntimeContext
|
+--jrunx.tyrex.tm.impl.ThreadContext
| Constructor Summary | |
ThreadContext(javax.naming.Context context,
javax.security.auth.Subject subject)
|
|
ThreadContext(javax.security.auth.Subject subject)
|
|
| Method Summary | |
protected void |
add(javax.transaction.xa.XAResource xaResource)
Adds an XA resource to the association list. |
protected void |
add(javax.transaction.xa.XAResource xaResource,
java.lang.String domainName)
|
void |
cleanup()
Cleanup the runtime context and discard all resources associated with it. |
void |
cleanup(java.lang.String domainName)
|
static void |
cleanup(java.lang.Thread thread)
Called to destroy all association with a thread. |
void |
clearTransaction(java.lang.String domainName)
|
protected javax.transaction.xa.XAResource[] |
getResources()
|
protected javax.transaction.xa.XAResource[] |
getResources(java.lang.String domainName)
Returns all the XA resources, or null if no resources are enlisted. |
javax.security.auth.Subject |
getSubject()
Returns the security subject associated with this runtime context. |
static ThreadContext |
getThreadContext(boolean ctreateNew)
|
static ThreadContext |
getThreadContext(java.lang.Thread thread,
boolean createNew)
|
javax.transaction.Transaction |
getTransaction()
Returns the transaction associated with this runtime context. |
javax.transaction.Transaction |
getTransaction(java.lang.String domainName)
|
protected boolean |
remove(javax.transaction.xa.XAResource xaResource)
|
protected boolean |
remove(javax.transaction.xa.XAResource xaResource,
java.lang.String domainName)
Removes an XA resource from the associated list. |
static void |
setThreadContext(ThreadContext context)
|
void |
setTransaction(jrunx.tyrex.tm.impl.TransactionImpl tx)
|
boolean |
txExistsOnThread()
|
static ThreadContext |
unsetThreadContext()
|
| Methods inherited from class jrunx.tyrex.tm.RuntimeContext |
getRuntimeContext, newRuntimeContext, newRuntimeContext, setRuntimeContext, unsetRuntimeContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThreadContext(javax.security.auth.Subject subject)
public ThreadContext(javax.naming.Context context,
javax.security.auth.Subject subject)
throws javax.naming.NamingException
| Method Detail |
public static ThreadContext getThreadContext(boolean ctreateNew)
public static ThreadContext getThreadContext(java.lang.Thread thread,
boolean createNew)
public static void setThreadContext(ThreadContext context)
public static ThreadContext unsetThreadContext()
public static void cleanup(java.lang.Thread thread)
RuntimeContextjrunx.tyrex.tm.RuntimeContextthread - The threadpublic void setTransaction(jrunx.tyrex.tm.impl.TransactionImpl tx)
public javax.transaction.Transaction getTransaction()
RuntimeContext
If the runtime context is associated with any open transaction,
the transaction will be returned. When the runtime context is
associated with the current thread, this method will return the
same transaction as TransactionManager#getTransaction.
getTransaction in class RuntimeContextjrunx.tyrex.tm.RuntimeContextpublic javax.transaction.Transaction getTransaction(java.lang.String domainName)
public boolean txExistsOnThread()
public void clearTransaction(java.lang.String domainName)
public javax.security.auth.Subject getSubject()
RuntimeContextThis security subject is used for authentication and authorization.
getSubject in class RuntimeContextjrunx.tyrex.tm.RuntimeContextpublic void cleanup()
RuntimeContextThis method is called when it has been determined that this runtime context will no longer be used.
cleanup in class RuntimeContextpublic void cleanup(java.lang.String domainName)
protected void add(javax.transaction.xa.XAResource xaResource)
protected void add(javax.transaction.xa.XAResource xaResource,
java.lang.String domainName)
protected boolean remove(javax.transaction.xa.XAResource xaResource)
protected boolean remove(javax.transaction.xa.XAResource xaResource,
java.lang.String domainName)
xaResource - the XA resourceprotected javax.transaction.xa.XAResource[] getResources()
protected javax.transaction.xa.XAResource[] getResources(java.lang.String domainName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||