Package com.sun.ejb.base.sfsb.util

Examples of com.sun.ejb.base.sfsb.util.EJBServerConfigLookup


        CacheProperties desc = new CacheProperties(ejbDescriptor);
        int idleTimeoutInSeconds = desc.getRemovalTimeoutInSeconds();
        //get containerId
        long containerId = ejbDescriptor.getUniqueId();
        //get clusterId
        EJBServerConfigLookup configLookup = new EJBServerConfigLookup(ejbDescriptor);
        String clusterId = configLookup.getClusterName();
        Map initMap = new HashMap();
 
        initMap.put("idleTimeoutInSeconds", new Integer(idleTimeoutInSeconds));
        initMap.put("containerId", new Long(containerId));
        initMap.put("clusterId", clusterId);
View Full Code Here


    }

    public void buildComponents(ConfigContext dynamicConfigContext)
  throws Exception
    {
  this.ejbConfigLookup = new EJBServerConfigLookup(ejbDescriptor,
      dynamicConfigContext);
  this.HAEnabled =
      ejbConfigLookup.calculateEjbAvailabilityEnabledFromConfig();

  cacheProps = new CacheProperties(ejbDescriptor);
View Full Code Here

    /**
    * get connection data source string for the connection
    */    
    protected String getDataSourceNameFromConfig() {
        if (dataSourceString == null) {       
            EJBServerConfigLookup configLookup = new EJBServerConfigLookup();
            dataSourceString = configLookup.getHaStorePoolJndiNameFromConfig();
        }
        return dataSourceString;
    }
View Full Code Here

        CacheProperties desc = new CacheProperties(ejbDescriptor);
        int idleTimeoutInSeconds = desc.getRemovalTimeoutInSeconds();
        //get containerId
        long containerId = ejbDescriptor.getUniqueId();
        //get clusterId
        EJBServerConfigLookup configLookup = new EJBServerConfigLookup(ejbDescriptor);
        String clusterId = configLookup.getClusterName();
        Map initMap = new HashMap();
 
        initMap.put("idleTimeoutInSeconds", new Integer(idleTimeoutInSeconds));
        initMap.put("containerId", new Long(containerId));
        initMap.put("clusterId", clusterId);
View Full Code Here

        CacheProperties desc = new CacheProperties(ejbDescriptor);
        int idleTimeoutInSeconds = desc.getRemovalTimeoutInSeconds();
        //get containerId
        long containerId = ejbDescriptor.getUniqueId();
        //get clusterId
        EJBServerConfigLookup configLookup = new EJBServerConfigLookup(ejbDescriptor);
        String clusterId = configLookup.getClusterName();
        storeManager.initSessionStore(clusterId, containerId,
                               idleTimeoutInSeconds);
    }
View Full Code Here

    void registerForTxCheckpoint(SessionContextImpl sessionCtx) {
        //No need to synchronize
        if (sfsbTxCoordinator == null) {
            EjbDescriptor desc = sessionCtx.getContainer().getEjbDescriptor();
            EJBServerConfigLookup ejbLookup = ejbContainerUtilImpl.getServices().
                    getService(EJBServerConfigLookup.class);
            ejbLookup.initWithEjbDescriptor(desc);
            sfsbTxCoordinator = new SFSBTxCheckpointCoordinator(
                    ejbLookup.getSfsbHaPersistenceTypeFromConfig());
        }

        sfsbTxCoordinator.registerContext(sessionCtx);
    }
View Full Code Here

    void registerForTxCheckpoint(SessionContextImpl sessionCtx) {
        //No need to synchronize
        if (sfsbTxCoordinator == null) {
            EjbDescriptor desc = sessionCtx.getContainer().getEjbDescriptor();
            EJBServerConfigLookup ejbLookup = ejbContainerUtilImpl.getDefaultHabitat().
                    getComponent(EJBServerConfigLookup.class);
            ejbLookup.initWithEjbDescriptor(desc);
            sfsbTxCoordinator = new SFSBTxCheckpointCoordinator(
                    ejbLookup.getSfsbHaPersistenceTypeFromConfig());
        }

        sfsbTxCoordinator.registerContext(sessionCtx);
    }
View Full Code Here

TOP

Related Classes of com.sun.ejb.base.sfsb.util.EJBServerConfigLookup

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.