Package org.openbravo.database

Examples of org.openbravo.database.JNDIConnectionProvider


      // myPool = new ConnectionProviderImpl(strPoolFile,
      // (!strPoolFile.startsWith("/") &&
      // !strPoolFile.substring(1,1).equals(":")), strContext);
      // Now pool take datasources from a JNDI resource file
      if (isJNDIModeOn) {
        myPool = new JNDIConnectionProvider(strPoolFile,
            (!strPoolFile.startsWith("/") && !strPoolFile.substring(1, 1).equals(":")));
      } else {
        myPool = ConnectionProviderContextListener.getPool(config.getServletContext());
      }
    } catch (Exception e) {
View Full Code Here


      throws PoolNotFoundException {
    try {
      String strPoolFile = configParameters.getPoolFilePath();
      boolean isRelative = !strPoolFile.startsWith("/") && !strPoolFile.substring(1, 1).equals(":");
      if (isJndiModeOn(strPoolFile)) {
        return new JNDIConnectionProvider(strPoolFile, isRelative);
      } else {
        return new ConnectionProviderImpl(strPoolFile, isRelative, configParameters.strContext);
      }

    } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.openbravo.database.JNDIConnectionProvider

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.