* @return poolName of the pool that this resource directly/indirectly points to
*/
private String getPoolNameFromResourceJndiName( String jndiName) {
String poolName = null ;
JdbcResource jdbcRes = null;
DASResourcesUtil resourcesUtil = (DASResourcesUtil)ResourcesUtil.createInstance();
//check if the jndi name is that of a pmf resource or a jdbc resource
PersistenceManagerFactoryResource pmfRes =
resourcesUtil.getPMFResourceByJndiName(jndiName );
if (pmfRes != null) {
jdbcRes = resourcesUtil.getJdbcResourceByJndiName(
pmfRes.getJdbcResourceJndiName());
} else {
jdbcRes = resourcesUtil.getJdbcResourceByJndiName(jndiName);
}
if ( jdbcRes != null ) {
if (_logger.isLoggable(Level.FINE)) {
_logger.fine( "jdbcRes is ---: " + jdbcRes.getJndiName() );