/** * Creates default ConnectorConnectionPool consisting of default * pool values. * * @param poolInfo Name of the pool * @return ConnectorConnectionPool created ConnectorConnectionPool instance */ public static ConnectorConnectionPool createDefaultConnectorPoolObject( PoolInfo poolInfo, String rarName) { ConnectorConnectionPool connectorPoolObj = new ConnectorConnectionPool(poolInfo); connectorPoolObj.setMaxPoolSize("20"); connectorPoolObj.setSteadyPoolSize("10"); connectorPoolObj.setMaxWaitTimeInMillis("7889"); connectorPoolObj.setIdleTimeoutInSeconds("789"); connectorPoolObj.setPoolResizeQuantity("2"); connectorPoolObj.setFailAllConnections(false); connectorPoolObj.setMatchConnections(true); //always setDefaultAdvancedPoolAttributes(connectorPoolObj); try { connectorPoolObj.setTransactionSupport(getTransactionSupportFromRaXml(rarName)); } catch (Exception ex) { if(_logger.isLoggable(Level.FINE)) { _logger.fine("error in setting txSupport"); } } return connectorPoolObj; }
new ConnectorConnectionPool(poolInfo); SunConnector sundesc = desc.getSunDescriptor(); ResourceAdapter sunRAXML = sundesc.getResourceAdapter();
throws Exception { ConnectorConnectionPool ccp ; ccp = new ConnectorConnectionPool(poolInfo); ccp.setSteadyPoolSize(domainCcp.getSteadyPoolSize()); ccp.setMaxPoolSize(domainCcp.getMaxPoolSize());
public ConnectorConnectionPool createConnectorConnectionPool(JdbcConnectionPool adminPool, PoolInfo poolInfo) throws ConnectorRuntimeException { String moduleName = ResourcesUtil.createInstance().getRANameofJdbcConnectionPool(adminPool); int txSupport = getTxSupport(moduleName); ConnectorDescriptor connDesc = runtime.getConnectorDescriptor(moduleName); //Create the connector Connection Pool object from the configbean object ConnectorConnectionPool conConnPool = new ConnectorConnectionPool(poolInfo); conConnPool.setTransactionSupport(txSupport); setConnectorConnectionPoolAttributes(conConnPool, adminPool); //Initially create the ConnectorDescriptor ConnectorDescriptorInfo connDescInfo = createConnectorDescriptorInfo(connDesc, moduleName); connDescInfo.setMCFConfigProperties( getMCFConfigProperties(adminPool, conConnPool, connDesc)); //since we are deploying a 1.0 RAR, this is null connDescInfo.setResourceAdapterConfigProperties((Set) null); conConnPool.setConnectorDescriptorInfo(connDescInfo); return conConnPool; }
ConnectorConnectionPool clone = new ConnectorConnectionPool(name); ConnectorDescriptorInfo cdi = connectorDescriptorInfo_.doClone(); clone.setSecurityMaps(this.securityMaps);