Examples of ConfigBean


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

Examples of com.sun.enterprise.config.ConfigBean

                                                     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

Examples of com.sun.enterprise.config.ConfigBean

    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

Examples of com.sun.enterprise.config.ConfigBean

    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

Examples of com.sun.enterprise.config.ConfigBean

    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

Examples of com.sun.enterprise.config.ConfigBean

            ((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

Examples of com.sun.enterprise.config.ConfigBean

     * @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

Examples of de.innovationgate.wga.config.ConfigBean

     */
    public static int retrievePriorityForDatabase(WGAConfiguration config, VirtualHost vHost, String dbkey) {

        // first try - check if default db is requested
        if (vHost.getDefaultDatabase() != null) {
            ConfigBean bean = (ConfigBean) config.getByUid(vHost.getDefaultDatabase());
            if (bean != null && bean instanceof ContentDatabase) {
                ContentDatabase database = (ContentDatabase) bean;
                if (dbkey.equalsIgnoreCase(database.getKey())) {
                    return 0;
                }
            }
        }
       
        // second try - check allowed db keys
        int i = 0;
        for (String uid : vHost.getAllowedDatabases()) {
            i++;
            if (uid.equals(VirtualHost.UID_ALL_DATABASES)) {
                return Integer.MAX_VALUE;
            }
            ConfigBean dbBean = (ConfigBean) config.getByUid(uid);
            if (dbBean != null && dbBean instanceof ContentDatabase) {
                ContentDatabase database = (ContentDatabase) dbBean;
                if (dbkey.equalsIgnoreCase(database.getKey())) {
                    return i;
                }      
View Full Code Here

Examples of de.innovationgate.wga.config.ConfigBean

    }
   
    public static String getDefaultDBKey(WGACore core, VirtualHost vHost) {
        String defaultDBKey = null;
        if (vHost.getDefaultDatabase() != null) {
            ConfigBean bean = (ConfigBean) core.getWgaConfiguration().getByUid(vHost.getDefaultDatabase());
            if (bean != null && bean instanceof ContentDatabase) {
                ContentDatabase database = (ContentDatabase) bean;
                defaultDBKey = database.getKey();
            }
        }
View Full Code Here

Examples of it.pdor.webapp.ConfigBean

class MovimentoNonValidoException extends Exception {
  private String alertMsgKey;
  private CommonMessageBundle messageBundle;

  public MovimentoNonValidoException(String alertMsgKey) {
    messageBundle = new CommonMessageBundle((new ConfigBean()).getOperazioniGiornaliereMessages());
    this.alertMsgKey = alertMsgKey;
  }
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.