Examples of UnspecifiedTransactionContext


Examples of org.apache.geronimo.transaction.context.UnspecifiedTransactionContext

        this.trackedConnectionAssociator = trackedConnectionAssociator;
    }

    public Object invoke(InstanceContext newInstanceContext) throws Throwable {
        if (TransactionContext.getContext() == null) {
            TransactionContext.setContext(new UnspecifiedTransactionContext());
        }
        InstanceContext oldInstanceContext = trackedConnectionAssociator.enter(newInstanceContext);
        try {
            return next.invoke(newInstanceContext);
        } finally {
View Full Code Here

Examples of org.apache.geronimo.transaction.context.UnspecifiedTransactionContext

    }

    private void recoverResourceManager(ResourceManager resourceManager) {
        TransactionContext oldTransactionContext = TransactionContext.getContext();
        try {
            TransactionContext.setContext(new UnspecifiedTransactionContext());
            NamedXAResource namedXAResource = null;
            try {
                namedXAResource = resourceManager.getRecoveryXAResources();
            } catch (SystemException e) {
                recoveryLog.error(e);
View Full Code Here

Examples of org.apache.geronimo.transaction.context.UnspecifiedTransactionContext

            }
            BeanTransactionContext beanContext = (BeanTransactionContext) ctx;
            try {
                beanContext.commit();
            } finally {
                UnspecifiedTransactionContext oldContext = beanContext.getOldContext();
                transactionContextManager.setContext(oldContext);
                oldContext.resume();
            }
        }
View Full Code Here

Examples of org.apache.geronimo.transaction.context.UnspecifiedTransactionContext

            }
            BeanTransactionContext beanContext = (BeanTransactionContext) ctx;
            try {
                beanContext.rollback();
            } finally {
                UnspecifiedTransactionContext oldContext = beanContext.getOldContext();
                transactionContextManager.setContext(oldContext);
                oldContext.resume();
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.