*/
public void insertTableWithNewTransaction() throws SQLException, NamingException, SystemException,
NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException,
TransactionException {
// creates a new transaction
UserTransaction utxNested = TransactionHelper.getUserTransaction();
// does a begin in other transaction
utxNested.begin();
try {
// creates the table
if (!bolOnlyCreateTrans) {
tableManager.insertTable(TABLE);
}
// does the commit in the nested transaction
// does the commit in the nested transaction
utxNested.commit();
} catch (Exception e) {
utxNested.rollback();
if (this.getTransactionStatus() != Status.STATUS_NO_TRANSACTION) {
utx.rollback();
}
throw new TransactionException("Error during commit.", e);
}