com.sun.enterprise.config.serverbeans.JdbcResource jdbcRes =
(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