Package com.sun.enterprise.connectors.util

Examples of com.sun.enterprise.connectors.util.DASResourcesUtil


     * @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() );
View Full Code Here

TOP

Related Classes of com.sun.enterprise.connectors.util.DASResourcesUtil

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.