Examples of afterCommit()


Examples of org.apache.geronimo.transaction.InstanceContext.afterCommit()

        ArrayList toFlush = getAssociatedContexts();
        for (Iterator i = toFlush.iterator(); i.hasNext();) {
            InstanceContext context = (InstanceContext) i.next();
            if (!context.isDead()) {
                try {
                    context.afterCommit(status);
                } catch (Throwable e) {
                    if (firstThrowable == null) {
                        firstThrowable = e;
                    }
                }
View Full Code Here

Examples of org.apache.geronimo.transaction.InstanceContext.afterCommit()

        ArrayList toFlush = getAssociatedContexts();
        for (Iterator i = toFlush.iterator(); i.hasNext();) {
            InstanceContext context = (InstanceContext) i.next();
            if (!context.isDead()) {
                try {
                    context.afterCommit(status);
                } catch (Throwable e) {
                    if (firstThrowable == null) {
                        firstThrowable = e;
                    }
                }
View Full Code Here

Examples of org.apache.geronimo.transaction.InstanceContext.afterCommit()

        ArrayList toFlush = getAssociatedContexts();
        for (Iterator i = toFlush.iterator(); i.hasNext();) {
            InstanceContext context = (InstanceContext) i.next();
            if (!context.isDead()) {
                try {
                    context.afterCommit(status);
                } catch (Throwable e) {
                    if (firstThrowable == null) {
                        firstThrowable = e;
                    }
                }
View Full Code Here

Examples of org.apache.geronimo.transaction.InstanceContext.afterCommit()

        Throwable firstThrowable = null;
        ArrayList toFlush = new ArrayList(associatedContexts.values());
        for (Iterator i = toFlush.iterator(); i.hasNext();) {
            InstanceContext context = (InstanceContext) i.next();
            try {
                context.afterCommit(status);
            } catch (Throwable e) {
                if (firstThrowable == null) {
                    firstThrowable = e;
                }
            }
View Full Code Here

Examples of org.apache.geronimo.transaction.InstanceContext.afterCommit()

    protected void afterCommit(boolean status) throws Exception {
        // @todo allow for enrollment during pre-commit
        ArrayList toFlush = new ArrayList(associatedContexts.values());
        for (Iterator i = toFlush.iterator(); i.hasNext();) {
            InstanceContext context = (InstanceContext) i.next();
            context.afterCommit(status);
        }
    }

    public final InstanceContext getContext(Object containerId, Object id) {
        return (InstanceContext) associatedContexts.get(containerId, id);
View Full Code Here

Examples of org.apache.geronimo.transaction.InstanceContext.afterCommit()

        ArrayList toFlush = getAssociatedContexts();
        for (Iterator i = toFlush.iterator(); i.hasNext();) {
            InstanceContext context = (InstanceContext) i.next();
            if (!context.isDead()) {
                try {
                    context.afterCommit(status);
                } catch (Throwable e) {
                    if (firstThrowable == null) {
                        firstThrowable = e;
                    }
                }
View Full Code Here

Examples of org.apache.geronimo.transaction.InstanceContext.afterCommit()

        ArrayList toFlush = getAssociatedContexts();
        for (Iterator i = toFlush.iterator(); i.hasNext();) {
            InstanceContext context = (InstanceContext) i.next();
            if (!context.isDead()) {
                try {
                    context.afterCommit(status);
                } catch (Throwable e) {
                    if (firstThrowable == null) {
                        firstThrowable = e;
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.webdav.jcr.transaction.TransactionListener.afterCommit()

    public void afterCommit(TransactionResource resource, String lockToken, boolean success) {
        List transactionListeners = (List) transactionListenerById.remove(lockToken);
        if (transactionListeners != null) {
            for (Iterator it = transactionListeners.iterator(); it.hasNext(); ) {
                TransactionListener txListener = (TransactionListener) it.next();
                txListener.afterCommit(resource, lockToken, success);
            }
        }
    }

    //----------------------------------------------< private inner classes >---
View Full Code Here

Examples of org.apache.jackrabbit.webdav.jcr.transaction.TransactionListener.afterCommit()

    public void afterCommit(TransactionResource resource, String lockToken, boolean success) {
        List transactionListeners = (List) transactionListenerById.remove(lockToken);
        if (transactionListeners != null) {
            for (Iterator it = transactionListeners.iterator(); it.hasNext(); ) {
                TransactionListener txListener = (TransactionListener) it.next();
                txListener.afterCommit(resource, lockToken, success);
            }
        }
    }

    //----------------------------------------------< private inner classes >---
View Full Code Here

Examples of org.apache.jetspeed.components.persistence.store.TransactionEventListener.afterCommit()

    {
        Iterator itr = listeners.iterator();
        while(itr.hasNext())
        {
          TransactionEventListener tel = (TransactionEventListener) itr.next();
          tel.afterCommit(new PersistenceStoreEventImpl(store, null));
        }

    }

    /**
 
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.