Package com.sun.enterprise.ee.web.sessmgmt

Examples of com.sun.enterprise.ee.web.sessmgmt.ReplicaCache


        String persistenceFrequency = "web-method";
        String persistenceScope = "session";
        Object[] params = { ctx.getPath(), persistenceType, persistenceFrequency, persistenceScope };
        _logger.log(Level.INFO, "webcontainer.haPersistence", params);
        ReplicationWebEventPersistentManager mgr = new ReplicationWebEventPersistentManager();
        ReplicaCache replicaCache = new ReplicaCache(mgr);
        mgr.setReplicaCache(replicaCache);

        mgr.setPassedInPersistenceType(getPassedInPersistenceType());
        mgr.setIsConverged(isConverged());
        mgr.setMaxActiveSessions(maxSessions)//FIXME: put this back
View Full Code Here


        StoreFactory ssoStoreFactory = createSSOStoreFactoryImpl();
        //for now only want singleton store for replication (i.e. nonHA) case
        if(!isPersistenceTypeHA()) {
            ReplicationSingleSignOn replSSO = (ReplicationSingleSignOn)haSSO;
            replSSO.setSingletonSSOStore((ReplicationSSOStore)ssoStoreFactory.createHAStore());
            ReplicaCache replicaCache = new ReplicaCache(replSSO);
            replSSO.setReplicaCache(replicaCache);
        }
        //TODO: get these configuration from server.xml
        StorePool storePool = new StorePool(StorePool.DEFAULT_INITIAL_SIZE, StorePool.DEFAULT_UPPER_SIZE, StorePool.DEFAULT_POLL_TIME, ssoStoreFactory);
        haSSO.setSSOStorePool(storePool);
View Full Code Here

      super.initializePersistenceStrategy(container, descriptor);

      //SFSBStoreManager storeManager = new HASFSBStoreManager();
            ReplicatedSFSBStoreManager storeManager = new ReplicatedSFSBStoreManager();
            storeManager.setPassedInPersistenceType(getPassedInPersistenceType());
            ReplicaCache replicaCache = new ReplicaCache(storeManager);
            storeManager.setReplicaCache(replicaCache);
            initStoreManager(storeManager, descriptor);
      container.setSFSBStoreManager(storeManager);
           
            //FIXME - register with health checker
View Full Code Here

        setSessionFactory(mgr);
       
        setDuplicateIdsSemanticsAllowed(mgr);

        ReplicaCache sasReplicaCache = new ReplicaCache(mgr);
        mgr.setSipApplicationSessionReplicaCache(sasReplicaCache);
        ReplicaCache ssReplicaCache = new ReplicaCache(mgr);
        mgr.setSipSessionReplicaCache(ssReplicaCache);
        ReplicaCache stReplicaCache = new ReplicaCache(mgr);
        mgr.setServletTimerReplicaCache(stReplicaCache);       

        mgr.setSkipRollingUpgradeBackupRestore(skipRollingUpgradeBackupRestore);
        mgr.setRollingUpgradeBackupDirectory(rollingUpgradeBackupDirectory);

        mgr.setSipApplicationSessionStore(new SipApplicationSessionStoreImpl());
        mgr.setSipSessionStore(new SipSessionStoreImpl());
        mgr.setServletTimerStore(new ServletTimerStoreImpl());

        /*
         * Add StorePools
         */
        ServerConfigReader configReader = new ServerConfigReader();

        int haStorePoolSize = configReader.getHAStorePoolSizeFromConfig();
        int haStorePoolUpperSize = configReader.getHAStorePoolUpperSizeFromConfig();
        int haStorePoolPollTime = configReader.getHAStorePoolPollTimeFromConfig();

        // SipApplicationSession StorePool       
        StoreFactory sipApplicationSessionStoreFactory = new SipApplicationSessionStoreFactory();
        StorePool sipApplicationSessionStorePool = new StorePool(haStorePoolSize,
                haStorePoolUpperSize, haStorePoolPollTime,
                sipApplicationSessionStoreFactory);
        mgr.setSipApplicationSessionStorePool(sipApplicationSessionStorePool);

        // SipSession StorePool
        StoreFactory sipSessionStoreFactory = new SipSessionStoreFactory();
        StorePool sipSessionStorePool = new StorePool(haStorePoolSize,
                haStorePoolUpperSize, haStorePoolPollTime,
                sipSessionStoreFactory);
        mgr.setSipSessionStorePool(sipSessionStorePool);

        // ServletTimer StorePool
        StoreFactory servletTimerStoreFactory = new ServletTimerStoreFactory();
        StorePool servletTimerStorePool = new StorePool(haStorePoolSize,
                haStorePoolUpperSize, haStorePoolPollTime,
                servletTimerStoreFactory);
        mgr.setServletTimerStorePool(servletTimerStorePool);

        ctx.setSipSessionManager(mgr);

        // If we are doing replication initialize jxta pipes if they
        // haven't been already
        String passedInPersistenceType = getPassedInPersistenceType();
        if (EEPersistenceTypeResolver.REPLICATED_TYPE.equalsIgnoreCase(passedInPersistenceType)) {
            JxtaReplicationReceiver receiver = JxtaReplicationReceiver.createInstance();
            receiver.doPipeInitialization();
 
            // ensure the Replication DialogFragmentManager service is initialized and started.
            DialogFragmentManager dfm = DialogFragmentManager.getInstance();
            try {
                if (dfm instanceof ReplicationDialogFragmentManager) {
                    ReplicationDialogFragmentManager rdfm = (ReplicationDialogFragmentManager) dfm;
                    ReplicaCache replicaCache = new ReplicaCache(mgr);
                    rdfm.setReplicaCache(replicaCache);                   
                    setDuplicateIdsSemanticsAllowedForDialogs(rdfm);
                    rdfm.initializeReplication(passedInPersistenceType, haStorePoolSize, haStorePoolUpperSize, haStorePoolPollTime);                   
                    rdfm.startReplication();
                }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.web.sessmgmt.ReplicaCache

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.