(com.sun.enterprise.config.serverbeans.JdbcResource) resource;
String jndiName = jdbcRes.getJndiName();
String poolName = jdbcRes.getPoolName();
PoolInfo poolInfo = new PoolInfo(poolName, applicationName, moduleName);
ResourceInfo resourceInfo = new ResourceInfo(jndiName, applicationName, moduleName);
if (ResourcesUtil.createInstance().isEnabled(jdbcRes, resourceInfo)){
runtime.createConnectorResource(resourceInfo, poolInfo, null);
//In-case the resource is explicitly created with a suffix (__nontx or __PM), no need to create one
if(ConnectorsUtil.getValidSuffix(jndiName) == null){
ResourceInfo pmResourceInfo = new ResourceInfo(ConnectorsUtil.getPMJndiName(jndiName),
resourceInfo.getApplicationName(), resourceInfo.getModuleName());
runtime.createConnectorResource( pmResourceInfo, poolInfo, null);
}
if(_logger.isLoggable(Level.FINEST)) {
_logger.finest("deployed resource " + jndiName);