public class LauncherTransactionHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
UT_NAMES
Various binding names for the UserTransaction.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkNStartTransaction()
Start transaction.
|
static void |
commitOrRollbackTransaction()
Commits or rolls back the User Transaction depending on the transaction
status.
|
static UserTransaction |
lookupUserTransaction()
Looks up the User Transaction in JNDI.
|
static boolean |
setTransactionRollbackOnly()
Sets the current User Transaction as rollback only.
|
public static final String[] UT_NAMES
public static UserTransaction lookupUserTransaction() throws NamingException
NamingException - if not foundpublic static void checkNStartTransaction()
public static void commitOrRollbackTransaction()
public static boolean setTransactionRollbackOnly()
true if the transaction was successfully marked rollback
only, false otherwiseCopyright © 2017. All rights reserved.