try {
beanContext.commit();
} finally {
UnspecifiedTransactionContext oldContext = beanContext.getOldContext();
transactionContextManager.setContext(oldContext);
oldContext.resume();
}
}
public void rollback() throws IllegalStateException, SecurityException, SystemException {
TransactionContext ctx = transactionContextManager.getContext();