Package org.postgresql.ds

Examples of org.postgresql.ds.PGPoolingDataSource


        this.dataDb = "biblioteca";
    }
   
   
    public DataSource getSource(){
        PGPoolingDataSource source = new PGPoolingDataSource();
        source.setDatabaseName(this.dataDb);
        source.setServerName(this.serverDb);
        source.setPortNumber(this.portDB);
        source.setUser(this.userDb);
        source.setPassword(this.passDb);
        source.setMaxConnections(5);      
        return source;
    }
View Full Code Here


  /**
   * Construct a new <code>PostgreSQLConnectionPool</code> object.
   *
   */
  protected PostgreSQLConnectionPool() {
    source = new PGPoolingDataSource();
    source.setDataSourceName(Configuration.getString("dbDataSource"));
    source.setServerName(Configuration.getString("dbServerName"));
    source.setDatabaseName(Configuration.getString("dbName"));
    source.setUser(Configuration.getString("dbUser"));
    source.setPortNumber(Configuration.getInt("dbPort"));
View Full Code Here

  /**
   * Construct a new <code>PostgreSQLConnectionPool</code> object.
   *
   */
  protected PostgreSQLConnectionPool() {
    source = new PGPoolingDataSource();
    source.setDataSourceName(Configuration.getString("dbDataSource"));
    source.setServerName(Configuration.getString("dbServerName"));
    source.setDatabaseName(Configuration.getString("dbName"));
    source.setUser(Configuration.getString("dbUser"));
    source.setPortNumber(Configuration.getInt("dbPort"));
View Full Code Here

  /**
   * Construct a new <code>PostgreSQLConnectionPool</code> object.
   *
   */
  protected PostgreSQLConnectionPool() {
    source = new PGPoolingDataSource();
    source.setDataSourceName(Configuration.getString("dbDataSource"));
    source.setServerName(Configuration.getString("dbServerName"));
    source.setDatabaseName(Configuration.getString("dbName"));
    source.setUser(Configuration.getString("dbUser"));
    source.setPortNumber(Configuration.getInt("dbPort"));
View Full Code Here

    /**
     * DataSrouce ベースのアクセスをする場合に DataSource の初期化
     */
    private void initializeDataSource() {
        // postgres 接続プール処理データソース
        datasource = new PGPoolingDataSource();
        datasource.setDataSourceName("postgresql");
        datasource.setServerName(getHost());
        datasource.setDatabaseName(database);
        datasource.setUser(getUser());
        datasource.setPassword(getPasswd());
View Full Code Here

   PGPoolingDataSource source;

   public PostgreSqlDataSourceImpl(PluginProperties properties)
   {
      source = new PGPoolingDataSource();

      source.setDataSourceName(properties.getParamString(PostgreSqlDataSourceImpl.DATASOURCE_NAME));
      source.setServerName(properties.getParamString(PostgreSqlDataSourceImpl.DATASOURCE_DB_HOST));
      source.setDatabaseName(properties.getParamString(PostgreSqlDataSourceImpl.DATASOURCE_DB_NAME));
      source.setUser(properties.getParamString(PostgreSqlDataSourceImpl.DATASOURCE_USER_LOGIN));
View Full Code Here

        ic.createSubcontext("java:/comp/env/jdbc");
       
        ic.createSubcontext("mail");
      
        // DataSource dla postgresa
        PGPoolingDataSource dataSource = new PGPoolingDataSource();
       
        dataSource.setDataSourceName("aperte-workflow-ds");
        dataSource.setServerName("localhost");
        dataSource.setDatabaseName(DATABASE_NAME);
        dataSource.setUser(USER_NAME);
        dataSource.setPassword(USER_PASSWORD);
       
       
        ic.bind("java:/comp/env/jdbc/aperte-workflow-ds", dataSource);
       
    final String userName = "axa-mail";
View Full Code Here

TOP

Related Classes of org.postgresql.ds.PGPoolingDataSource

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.