Examples of lockApplicationSession()


Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

                chs.getApplicationSession(false);
            if (sas != null) {
                ReplicationUnitOfWork uow =
                    ReplicationUnitOfWork.getThreadLocalUnitOfWork();
                if (uow != null) {
                    uow.lockApplicationSession(sas);
                } else {
                    throw new IllegalStateException(
                        "Missing Unit-of-work when there should be one");
                }
            }
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

                // If unit-of-work already exists, leverage it instead of
                // creating a new one
                if (ReplicationUnitOfWork.getThreadLocalUnitOfWork() == null) {
                    ReplicationUnitOfWork unitOfWork =
                        new ReplicationUnitOfWork();
                    unitOfWork.lockApplicationSession(sas);
                    try {
                        // fire timer
                        return fireTimer();
                    } finally {
                        // Save modified entities (if any), and unlock the
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

     */
    void notifyWillPassivate() {
        // assumption is that this is never called with an active UOW
        // assert(ReplicationUnitOfWork.getThreadLocalUnitOfWork() == null);
        ReplicationUnitOfWork unitOfWork = new ReplicationUnitOfWork();
        unitOfWork.lockApplicationSession(this);
        try {
            notifySessionWillPassivate();           
        } finally {
            // Unlock UOW, but don't save it (see IT 1114). If any changes
            // were made to the SAS, they will be included in the serialized
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

        }
       
        // assumption is that this is never called with an active UOW
        // assert(ReplicationUnitOfWork.getThreadLocalUnitOfWork() == null);
        ReplicationUnitOfWork unitOfWork = new ReplicationUnitOfWork();
        unitOfWork.lockApplicationSession(this);
        try {
            cancelNonPersistentTimers();

            // Remove from active cache
            PersistentSipSessionManagerBase mgr = (PersistentSipSessionManagerBase)
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

        }
        if (ReplicationUnitOfWork.getThreadLocalUnitOfWork() == null) {
            // if not invoked in the context where there is a UOW we create
            // a new one (e.g., when called after a loadAdvisory).
            ReplicationUnitOfWork unitOfWork = new ReplicationUnitOfWork();
            unitOfWork.lockApplicationSession(this);
            try {
                return super.activate();
            } finally {
                // Save modified entities (if any), and unlock the dialog
                unitOfWork.saveAndUnlock();
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

            = ReplicationUnitOfWork.getThreadLocalUnitOfWork();
        if(unitOfWork == null) {
            unitOfWork = new ReplicationUnitOfWork();
        }
       
        unitOfWork.lockApplicationSession(this);
        try {
            this.setPFieldExpirationTime(this.getPFieldExpirationTime());
        } finally {
            // Save modified entities, and unlock the dialog
            unitOfWork.saveAndUnlock();
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

            // entities/artifacts during timer invocation.
            // If a unit-of-work already exists, leverage it instead of
            // creating a new one.
            if (ReplicationUnitOfWork.getThreadLocalUnitOfWork() == null) {
                ReplicationUnitOfWork unitOfWork = new ReplicationUnitOfWork();
                unitOfWork.lockApplicationSession(this);
                try {
                    // fire timer
                    super.timeout(timer);
                } finally {
                    // Save modified entities (if any), and unlock the dialog
View Full Code Here

Examples of com.ericsson.ssa.sip.persistence.ReplicationUnitOfWork.lockApplicationSession()

            }

            ReplicationUnitOfWork uow =
                ReplicationUnitOfWork.getThreadLocalUnitOfWork();
            if (uow != null) {
                uow.lockApplicationSession(sipAppSession);
            }
        }

        if ((sipAppSession != null) &&
                (httpSession.getSipApplicationSessionId() == 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.