Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigBean


        if( availService.isAvailabilityEnabled() ){
           String storePoolName = availService.getStorePoolName();
            databaseName = availService.getHaStoreName();

            if( Resources.JDBC_RESOURCE.equals(ResourceHelper.getResourceType(configContext, storePoolName))){
                ConfigBean resource = ResourceHelper.findResource(configContext,storePoolName);

                if(resource instanceof JdbcResource){
                    JdbcResource jdbcResource = (JdbcResource)resource ;

                    String poolName = jdbcResource.getPoolName();

                    if( Resources.JDBC_CONNECTION_POOL.equals(ResourceHelper.getResourceType(configContext, poolName))){
                        ConfigBean conPoolResource = ResourceHelper.findResource(configContext, poolName);

                        if(conPoolResource instanceof JdbcConnectionPool){
                            ElementProperty passwordProperty = ((JdbcConnectionPool)conPoolResource).getElementPropertyByName("Password");
                            adminPassword = passwordProperty.getValue();
                        }
View Full Code Here


                                                     DeployableObjectType.CAR);
        return menv.getModuleGeneratedXMLPath();
    }

    protected boolean isRegistered(String appId, ConfigBean bean) {
        ConfigBean cb = null;
        try {
            cb = ((Applications)bean).getAppclientModuleByName(appId);
        } catch(Exception cn) {
        }
       
View Full Code Here

    private void loadPool(com.sun.enterprise.config.serverbeans.JdbcResource jr)
            throws Exception {

        String poolName = jr.getPoolName();
        Resources resources = (Resources) jr.parent();
        ConfigBean cb = resources.getJdbcConnectionPoolByName(poolName);
        if (cb != null) {
            try {
                InitialContext ic = new InitialContext();
                ic.lookup(ConnectorAdminServiceUtils.
                                getReservePrefixedJNDINameForPool(poolName));
View Full Code Here

    private boolean checkEmbeddedRarStatus(ConnectorResource cr) {
        boolean result = true;
        Resources resources = (Resources) cr.parent();
        String poolName = cr.getPoolName();
        ConfigBean cb = resources.getConnectorConnectionPoolByName(poolName);
        com.sun.enterprise.config.serverbeans.ConnectorConnectionPool cp =
          (com.sun.enterprise.config.serverbeans.ConnectorConnectionPool)cb;

        if(cp != null){
            ResourcesUtil util = ResourcesUtil.createInstance();
View Full Code Here

    private void loadPool(ConnectorResource cr) throws Exception {

        String poolName = cr.getPoolName();
        Resources resources = (Resources) cr.parent();
        ConfigBean cb = resources.getConnectorConnectionPoolByName(poolName);
        com.sun.enterprise.config.serverbeans.ConnectorConnectionPool cp =
          (com.sun.enterprise.config.serverbeans.ConnectorConnectionPool)cb;
        if (cb != null) {
          if (ConnectionPoolObjectsUtils.isPoolSystemPool(poolName)){
              createPool(cp);
View Full Code Here

            ((Applications)configBean).getWebModuleByName(modId);
        ((Applications)configBean).removeWebModule(backEm);
    }
   
    protected boolean isRegistered(String modId, ConfigBean bean) {
        ConfigBean cb = null;
        try {
            cb = ((Applications)bean).getWebModuleByName(modId);
        } catch(Exception cn) {
        }
       
View Full Code Here

     * @param moduleName The name of the component (application or module)
     * @return boolean
     */
    protected boolean isEnabled(ConfigContext config, String moduleName) {
        try {
            ConfigBean app = ApplicationHelper.findApplication(config, moduleName);

            Server server = ServerBeansFactory.getServerBean(config);
            ApplicationRef appRef = server.getApplicationRefByRef(moduleName);

            return ((app != null && app.isEnabled()) &&
                        (appRef != null && appRef.isEnabled()));
        } catch (ConfigException e) {
            AdminEventListenerException ex = new AdminEventListenerException();
            ex.initCause(e);
            _logger.log(Level.FINE, "Error in finding " + moduleName, e);
View Full Code Here

            ((Applications)configBean).getEjbModuleByName(modId);
        ((Applications)configBean).removeEjbModule(backEm);
    }
   
    protected boolean isRegistered(String appId, ConfigBean bean) {
        ConfigBean cb = null;
        try {
            cb = ((Applications)bean).getEjbModuleByName(appId);
        } catch(Exception cn) {
        }
       
View Full Code Here

        ConnectorModule backEm = (ConnectorModule)((Applications)configBean).getConnectorModuleByName(modId);
        ((Applications)configBean).removeConnectorModule(backEm);
    }
   
    protected boolean isRegistered(String modId, ConfigBean bean) {
        ConfigBean cb = null;
        try {
            cb = ((Applications)bean).getConnectorModuleByName(modId);
        } catch(Exception cn) {
        }
       
View Full Code Here

                        _logger.log(Level.SEVERE, "vs.defaultWebModuleDisabled",
                                    params);
                    }
                }
            } else {
                ConfigBean wm = wmInfo.getBean();
                if(wm instanceof WebModule) {
                    contextRoot = ((WebModule)wm).getContextRoot();
                } else {
                    ExtensionModule emBean = (ExtensionModule)wm;
                    contextRoot =
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigBean

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.