public final class EjbTransactionUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
afterInvoke(TransactionPolicy txPolicy,
ThreadContext threadContext)
Completes the specified TransactionPolicy and disassociates it from the specified ThreadContext.
|
static TransactionPolicy |
createTransactionPolicy(TransactionType type,
ThreadContext threadContext)
Creates a new TransctionPolicy of the specified type and associates it with the specified ThreadContext.
|
static void |
handleApplicationException(TransactionPolicy txPolicy,
java.lang.Throwable appException,
boolean rollback)
Performs EJB rules when an application exception occurs.
|
static void |
handleSystemException(TransactionPolicy txPolicy,
java.lang.Throwable sysException,
ThreadContext callContext)
Performs EJB rules when a system exception occurs.
|
public static TransactionPolicy createTransactionPolicy(TransactionType type, ThreadContext threadContext) throws SystemException, ApplicationException
SystemException
ApplicationException
public static void afterInvoke(TransactionPolicy txPolicy, ThreadContext threadContext) throws SystemException, ApplicationException
SystemException
ApplicationException
public static void handleApplicationException(TransactionPolicy txPolicy, java.lang.Throwable appException, boolean rollback) throws ApplicationException
ApplicationException
public static void handleSystemException(TransactionPolicy txPolicy, java.lang.Throwable sysException, ThreadContext callContext) throws InvalidateReferenceException
InvalidateReferenceException