Package com.arjuna.ats.internal.jdbc

Examples of com.arjuna.ats.internal.jdbc.ConnectionImple


   *          information for connection!
   */

  public synchronized XAResource getXAResource () throws SQLException
  {
    ConnectionImple conn = null;

    if (hasMoreResources())
    {
      connectionIndex++;

      conn = getStandardConnection();

      if (conn == null) conn = getJNDIConnection();

      if (conn == null)
      {
        if (jdbcLogger.loggerI18N.isWarnEnabled())
        {
          jdbcLogger.loggerI18N.warn(
              "com.arjuna.ats.internal.jdbc.recovery.basic.xarec",
              new Object[] { "BasicXARecovery.getConnection -" });
        }
      }
    }

    return conn.recoveryConnection().getConnection().getXAResource();
  }
View Full Code Here


      String dc = props.getProperty(dynamicClass);

      if (dc != null)
        dbProperties.put(TransactionalDriver.dynamicClass, dc);

      return new ConnectionImple(url, dbProperties);
    }
    else
      return null;
  }
View Full Code Here

    if (theUser != null)
    {
      dbProperties.put(TransactionalDriver.userName, theUser);
      dbProperties.put(TransactionalDriver.password, thePassword);

      return new ConnectionImple(url, dbProperties);
    }
    else
      return null;
  }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.internal.jdbc.ConnectionImple

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.