Examples of DBCPConnectionManager


Examples of com.javaeye.jert.domain.connection.DBCPConnectionManager

        db.setDriver("org.hsqldb.jdbcDriver");
        db.setUrl("jdbc:hsqldb:mem:reportdefinition_test");
        db.setUsername("sa");
        db.setPassword("");

        db.setConnectionManager(new DBCPConnectionManager());
        return db;
    }
View Full Code Here

Examples of org.exolab.jms.persistence.DBCPConnectionManager

                .getRdbmsDatabaseConfiguration();
        if (rdbms == null) {
            throw new PersistenceException(
                    "Configuration not configured to use an RDBMS");
        }
        _connections = new DBCPConnectionManager();
        _connections.setDriver(rdbms.getDriver());
        _connections.setURL(rdbms.getUrl());
        _connections.setUser(rdbms.getUser());
        _connections.setPassword(rdbms.getPassword());
        _connections.init();
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.DBCPConnectionManager

      throws DataServiceFault {
    super(dataService, configId, DataSourceTypes.JNDI, properties);
    if (!dataService.isServiceInactive()) {
      this.validateJNDIConfig();
        DataSource externalDS = this.createDataSource();
        this.setDBCPConnectionManager(new DBCPConnectionManager(this, externalDS));
        try {
          this.initSQLDataSource();
        } catch (SQLException e) {
          throw new DataServiceFault(e, DBConstants.FaultCodes.CONNECTION_UNAVAILABLE_ERROR,
              e.getMessage());
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.DBCPConnectionManager

      this.xaDataSourceInfo = this.createXADataSourceInfo(properties);
    }
   
    if (!dataService.isServiceInactive()) {
      validateRDBMSConfig();
        this.setDBCPConnectionManager(new DBCPConnectionManager(this));
        try {
          this.initSQLDataSource();
        } catch (SQLException e) {
          throw new DataServiceFault(e, DBConstants.FaultCodes.CONNECTION_UNAVAILABLE_ERROR,
              e.getMessage());
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.DBCPConnectionManager

  protected DBCPConnectionManager getDBCPConnectionManager() {
    return dbcpConnectionManager;
  }
 
  public DataSource getDataSource() {
    DBCPConnectionManager manager = this.getDBCPConnectionManager();
    if (manager != null) {
      return manager.getDatasource();
    } else {
      return null;
    }
  }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.DBCPConnectionManager

      return null;
    }
  }
 
  public void close() {
    DBCPConnectionManager cm = this.getDBCPConnectionManager();
    if (cm != null) {
        cm.close();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.