Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.EjbContainerAvailability


    * return inherited global availability-enabled if not found
    */  
    public boolean getEjbContainerAvailabilityEnabledFromConfig() {
        boolean globalAvailabilityEnabled = this.getAvailabilityEnabledFromConfig();
        _logger.finest("in EJBServerConfigLookup>>getEjbContainerAvailabilityEnabledFromConfig");
        EjbContainerAvailability eas = this.getEjbContainerAvailability();
        if(eas == null) {
            _logger.fine("EjbContainerAvailability was not defined - check domain.xml");
            return globalAvailabilityEnabled;
        }
       
        String easString = eas.getAvailabilityEnabled();
        Boolean bool = this.toBoolean(easString);
        if(bool == null) {
            return globalAvailabilityEnabled;
        } else {
            return bool.booleanValue();
View Full Code Here


    * Get the availability-enabled for the ejb container from domain.xml.
    * return inherited global availability-enabled if not found
    */  
    public boolean getEjbContainerAvailabilityEnabledFromConfig(boolean inheritedValue) {
        _logger.finest("in EJBServerConfigLookup>>getEjbContainerAvailabilityEnabledFromConfig");
        EjbContainerAvailability eas = this.getEjbContainerAvailability();
        if(eas == null) {
            _logger.fine("EjbContainerAvailability was not defined - check domain.xml");
            return inheritedValue;
        }
       
        String easString = eas.getAvailabilityEnabled();
        Boolean bool = this.toBoolean(easString);
        if(bool == null) {
            return inheritedValue;
        } else {
            return bool.booleanValue();
View Full Code Here

    */
    public String getHaStorePoolJndiNameFromConfig() {
        _logger.finest("in EJBServerConfigLookup>>getHaStorePoolJndiNameFromConfig");
        //String result = DEFAULT_STORE_POOL_JNDI_NAME;
        String result = this.getStorePoolJndiNameFromConfig();
        EjbContainerAvailability ejbContainerAvailabilityBean =
            this.getEjbContainerAvailability();
        if(ejbContainerAvailabilityBean == null) {
            return result;
        }
        String result2 = ejbContainerAvailabilityBean.getSfsbStorePoolName();
        if(result2 != null) {
            result = result2;
        }
        return result;
    }
View Full Code Here

    * return DEFAULT_SFSB_HA_PERSISTENCE_TYPE if not found
    */
    public String getSfsbHaPersistenceTypeFromConfig() {
        _logger.finest("in EJBServerConfigLookup>>getSfsbHaPersistenceTypeFromConfig");
        String result = DEFAULT_SFSB_HA_PERSISTENCE_TYPE;
        EjbContainerAvailability ejbContainerAvailabilityBean =
            this.getEjbContainerAvailability();
        if(ejbContainerAvailabilityBean == null) {
            return result;
        }
        String result2 = ejbContainerAvailabilityBean.getSfsbHaPersistenceType();
        if(result2 != null) {
            result = result2;
        }
        return result;
    }   
View Full Code Here

    * return DEFAULT_SFSB_NON_HA_PERSISTENCE_TYPE if not found
    */
    public String getSfsbNonHaPersistenceTypeFromConfig() {
        _logger.finest("in EJBServerConfigLookup>>getSfsbNonHaPersistenceTypeFromConfig");
        String result = DEFAULT_SFSB_NON_HA_PERSISTENCE_TYPE;
        EjbContainerAvailability ejbContainerAvailabilityBean =
            this.getEjbContainerAvailability();
        if(ejbContainerAvailabilityBean == null) {
            return result;
        }
        //String result2 = ejbContainerAvailabilityBean.getSfsbNonHaPersistenceType();
        String result2 = ejbContainerAvailabilityBean.getSfsbPersistenceType();
        if(result2 != null) {
            result = result2;
        }
        return result;
    }
View Full Code Here

        if(apw.equals(dpw))
            avail.setHaAgentPassword("",  BaseConfigMBean.OVERWRITE);
        else
            avail.setHaAgentPassword(apw,  BaseConfigMBean.OVERWRITE);
       
        EjbContainerAvailability  ejbAvail  = avail.getEjbContainerAvailability();
        WebContainerAvailability  webAvail  = avail.getWebContainerAvailability();
        JmsAvailability        jmsAvail  = avail.getJmsAvailability();
       
        // Bug 6171921 -- need to add some default values for attributes
       
        ejbAvail.setSfsbStorePoolName(      jndiName,  BaseConfigMBean.OVERWRITE);
        ejbAvail.setSfsbPersistenceType(    "ha",    BaseConfigMBean.OVERWRITE);
        ejbAvail.setSfsbHaPersistenceType(    "ha",    BaseConfigMBean.OVERWRITE);
        ejbAvail.setSfsbCheckpointEnabled(    "true",    BaseConfigMBean.OVERWRITE);
        ejbAvail.setAvailabilityEnabled(    "true",    BaseConfigMBean.OVERWRITE);
       
        webAvail.setHttpSessionStorePoolNamejndiName,  BaseConfigMBean.OVERWRITE);
        webAvail.setAvailabilityEnabled(    "true",    BaseConfigMBean.OVERWRITE);
       
        jmsAvail.setAvailabilityEnabled(    false,    BaseConfigMBean.OVERWRITE);
View Full Code Here

        avail.setHaAgentHosts(    "",            BaseConfigMBean.OVERWRITE);
        avail.setStorePoolName(    DEFAULT_JNDI_NAME,    BaseConfigMBean.OVERWRITE);
        avail.setAvailabilityEnabled(false,          BaseConfigMBean.OVERWRITE);
        avail.setHaAgentPassword"",            BaseConfigMBean.OVERWRITE);
       
        EjbContainerAvailability  ejbAvail  = avail.getEjbContainerAvailability();
        WebContainerAvailability  webAvail  = avail.getWebContainerAvailability();
        JmsAvailability        jmsAvail  = avail.getJmsAvailability();
       
        // Bug 6171921 -- need to add some default values for attributes
       
        ejbAvail.setSfsbStorePoolName(      DEFAULT_JNDI_NAME,  BaseConfigMBean.OVERWRITE);
        ejbAvail.setSfsbPersistenceType(    "ha",        BaseConfigMBean.OVERWRITE);
        ejbAvail.setSfsbHaPersistenceType(    "ha",        BaseConfigMBean.OVERWRITE);
        ejbAvail.setSfsbCheckpointEnabled(    "true",        BaseConfigMBean.OVERWRITE);
        ejbAvail.setAvailabilityEnabled(    "false",      BaseConfigMBean.OVERWRITE);
       
        webAvail.setHttpSessionStorePoolNameDEFAULT_JNDI_NAME,  BaseConfigMBean.OVERWRITE);
        webAvail.setAvailabilityEnabled(    "false",      BaseConfigMBean.OVERWRITE);
       
        jmsAvail.setAvailabilityEnabled(    false,        BaseConfigMBean.OVERWRITE);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.EjbContainerAvailability

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.