Package com.sun.appserv.ha.uow

Examples of com.sun.appserv.ha.uow.ReplicationUnitOfWork


     * Adds this session to a unit-of-work.
     */
    public void addToUnitOfWork() {
        StandardContext ctx = (StandardContext) manager.getContainer();
        if (ctx != null && ctx.isConverged()) {
            ReplicationUnitOfWork uow =
                ReplicationUnitOfWork.getThreadLocalUnitOfWork();
            if (uow != null) {
                uow.add(this);
            }
        }
    }
View Full Code Here


                if (!context.isConverged()) {
                    WebEventPersistentManager pMgr =
                        (WebEventPersistentManager) manager;
                    pMgr.doValveSave(session);
                } else {
                    ReplicationUnitOfWork uow =
                        ReplicationUnitOfWork.getThreadLocalUnitOfWork();
                    if (uow != null) {
                        // Make sure our session is part of the UOW
                        // if it has not already been added to it
                        // (UOW will detect if it's a duplicate)
                        uow.add((ReplicableEntity) session);
                        uow.save();
                    } else {
                        throw new IllegalStateException("Missing unit-of-work");
                    }
                }
            }
View Full Code Here

TOP

Related Classes of com.sun.appserv.ha.uow.ReplicationUnitOfWork

Copyright © 2018 www.massapicom. 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.