Package com.sun.enterprise.config.serverbeans

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


                    return null;
                }
       
                for (Map.Entry<ConnectorConnectionPool, MonitorableResourcePool> entry :
                        poolMap.entrySet() ) {
                    ConnectorConnectionPool ccp = entry.getKey();
                    MonitorableResourcePool pool = entry.getValue();
                    if ( pool != null ) {
                        try {
                            ConnectorConnectionPoolStatsImpl stats = new
                                ConnectorConnectionPoolStatsImpl(pool);
View Full Code Here


                if (pools == null) {
                    return null;
                }
                       
                for (Map.Entry<ConnectorConnectionPool, MonitorableResourcePool> entry :  pools.entrySet() ) {
                    ConnectorConnectionPool ccp = entry.getKey();
                    MonitorableResourcePool pool = entry.getValue();
                    if (pool != null) {
                        try {
                            registry_.unregisterConnectorConnectionPoolStats(
                                pool.getPoolName(),
View Full Code Here

                    return null;
                }
       
                for (Map.Entry<ConnectorConnectionPool, MonitorableResourcePool> entry :
                        poolMap.entrySet() ) {
                    ConnectorConnectionPool ccp = entry.getKey();
                    MonitorableResourcePool pool = entry.getValue();
                    if ( pool != null ) {
                        try {
                            ConnectorConnectionPoolStatsImpl stats = new
                                ConnectorConnectionPoolStatsImpl(pool);
View Full Code Here

        if (poolName == null) {
            return list;
        }

        Resources root = ((Domain)_ctx.getRootConfigBean()).getResources();
        ConnectorConnectionPool pool =
            root.getConnectorConnectionPoolByName(poolName);

        if (pool == null) {
            return list;
        }
View Full Code Here

      if (res == null) {
          String msg = sm.getString("ajra.mdb_cf_not_created", cfName);
    throw new ConnectorRuntimeException(msg);
      }

      ConnectorConnectionPool ccp = (ConnectorConnectionPool)
        rbeans.getConnectorConnectionPoolByName(res.getPoolName());

      ep = ccp.getElementProperty();
        } catch(ConfigException ce) {
      String msg = sm.getString("ajra.mdb_cf_not_created", cfName);
      ConnectorRuntimeException cre = new ConnectorRuntimeException( msg );
      ce.initCause( ce );
            throw cre;
View Full Code Here

        for(int i=0; i< noOfConnectorResources; ++i) {
            ConnectorResource ccResource = res.getConnectorResource(i);
            if(ccResource == null)
                continue;
            ConnectorConnectionPool ccPool = getConnectorConnectionPoolByName(
                    ccResource.getPoolName());
            if(ccPool == null)
                continue;
            String resourceAdapterName = ccPool.getResourceAdapterName();
            if(resourceAdapterName == null)
                continue;
            if(rarName != null && !rarName.equals(resourceAdapterName))
                continue;
View Full Code Here

    public static void resetEventConfigContext() {
        localResourcesUtil.set(null);
    }
   
    public boolean poolBelongsToSystemRar(String poolName) {
        ConnectorConnectionPool ccPool =
                res.getConnectorConnectionPoolByName(poolName);
        if(ccPool != null){
            return belongToSystemRar(ccPool.getResourceAdapterName());
        } else {
            JdbcConnectionPool jdbcPool =
                    res.getJdbcConnectionPoolByName(poolName);
            if(jdbcPool != null) {
                return true;
View Full Code Here

                res.getConnectorResourceByJndiName(resourceName);
        if(connectorResource == null || !connectorResource.isEnabled()) {
            return null;
        }
        String poolName = connectorResource.getPoolName();
        ConnectorConnectionPool ccPool =
                res.getConnectorConnectionPoolByName(poolName);
        if(ccPool == null) {
            return null;
        }
        String rarName = ccPool.getResourceAdapterName();
        if(rarName != null){
            resourcesToload[0] = ccPool;
            resourcesToload[1] = connectorResource;
            ResourceAdapterConfig[] resourceAdapterConfig =
                    new ResourceAdapterConfig[1];
View Full Code Here

        if(poolName == null) {
            return null;
        }
       
       
        ConnectorConnectionPool ccPool =
                res.getConnectorConnectionPoolByName(poolName);
        if(ccPool == null) {
            return null;
        }
       
        String rarName = ccPool.getResourceAdapterName();
       
        if(rarName != null){
            resourcesToload[0] = ccPool;
            ResourceAdapterConfig[] resourceAdapterConfig =
                    new ResourceAdapterConfig[1];
View Full Code Here

       
        if(!isResourceReferenceEnabled(cr.getJndiName()))
            return false;
       
        String poolName = cr.getPoolName();
        ConnectorConnectionPool ccp = res.getConnectorConnectionPoolByName(poolName);
        if (ccp == null) {
            return false;
        }
        return isEnabled(ccp);
    }
View Full Code Here

TOP

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

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.