if (transactionContextManager.getContext() == null) {
transactionContextManager.newUnspecifiedTransactionContext();
}
TransactionContext ctx = transactionContextManager.getContext();
if (ctx instanceof UnspecifiedTransactionContext == false) {
throw new NotSupportedException("Previous Transaction has not been committed");
}
UnspecifiedTransactionContext oldContext = (UnspecifiedTransactionContext) ctx;
GeronimoTransactionContext transactionContext = new GeronimoTransactionContext(
this,
(ExtendedTransactionManager) transactionContextManager.getTransactionManager(),