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