Examples of JdbcConnectionPool


Examples of com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool

            }
        }

        @Override
        public void run() {
            JDBCConnectionPool pool = getConnectionPool();
            if (pool != null) {
                try {
                    int cents = 100;
                    for (int cent = 0; cent < cents; cent++) {
                        TableQuery q = new TableQuery("AUTHOR", pool);
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool

        final Label selectedLabel = new Label("Selected: null");
        layout.addComponent(selectedLabel);

        try {
            JDBCConnectionPool connectionPool = new SimpleJDBCConnectionPool(
                    "org.hsqldb.jdbc.JDBCDriver",
                    "jdbc:hsqldb:mem:sqlcontainer", "SA", "", 2, 20);

            createTestTable(connectionPool);
            insertTestData(connectionPool);
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool

        final Label selectedLabel = new Label("Selected: null");
        layout.addComponent(selectedLabel);

        try {
            JDBCConnectionPool connectionPool = new SimpleJDBCConnectionPool(
                    "org.hsqldb.jdbc.JDBCDriver",
                    "jdbc:hsqldb:mem:sqlcontainer", "SA", "", 2, 20);

            createTestTable(connectionPool);
            insertTestData(connectionPool);
View Full Code Here

Examples of hermes.store.jdbc.JDBCConnectionPool

  private ThreadLocal<Connection> writerTL = new ThreadLocal<Connection>();

  public SingleUserMessageStore(String storeId, String jdbcURL, boolean doCreate) throws JMSException {
    this.storeId = storeId;
    this.jdbcURL = jdbcURL;
    this.connectionPool = new JDBCConnectionPool(jdbcURL, 2, false);
    this.adapter = StoreUtils.getJDBCAdapter(jdbcURL);
    try {
      Connection connection = connectionPool.get();

      if (doCreate) {
View Full Code Here

Examples of org.glassfish.admin.amx.intf.config.JdbcConnectionPool

        // check pool name
        final Resources resources = getDomainRootProxy().child(Domain.class).getResources();

        final Map<String, JdbcConnectionPool> pools = resources.childrenMap(JdbcConnectionPool.class);
        final JdbcConnectionPool cfg = pools.get(poolName);
        if (cfg == null)
        {
            result.put(REASON_FAILED_KEY, "The JdbcConnectionPool \"" + poolName + "\" does not exist");
            return result;
        }
View Full Code Here

Examples of org.glassfish.jdbc.config.JdbcConnectionPool

        if(_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE, "DataSourceDefinitionDeployer.deployResource() : pool-name ["+poolName+"], " +
                    " resource-name ["+resourceName+"]");
        }

        JdbcConnectionPool jdbcCp = new MyJdbcConnectionPool(desc, poolName);

        //deploy pool
        getDeployer(jdbcCp).deployResource(jdbcCp);

        //deploy resource
View Full Code Here

Examples of org.glassfish.jdbc.config.JdbcConnectionPool

        //undeploy resource
        JdbcResource jdbcResource = new MyJdbcResource(poolName, resourceName);
        getDeployer(jdbcResource).undeployResource(jdbcResource);

        //undeploy pool
        JdbcConnectionPool jdbcCp = new MyJdbcConnectionPool(desc, poolName);
        getDeployer(jdbcCp).undeployResource(jdbcCp);

        desc.setDeployed(false);
    }
View Full Code Here

Examples of org.glassfish.jdbc.config.JdbcConnectionPool

        if(_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE, "DataSourceDefinitionDeployer.deployResource() : pool-name ["+poolName+"], " +
                    " resource-name ["+resourceName+"]");
        }

        JdbcConnectionPool jdbcCp = new MyJdbcConnectionPool(desc, poolName);

        //deploy pool
        getDeployer(jdbcCp).deployResource(jdbcCp);

        //deploy resource
View Full Code Here

Examples of org.glassfish.jdbc.config.JdbcConnectionPool

        //undeploy resource
        JdbcResource jdbcResource = new MyJdbcResource(poolName, resourceName);
        getDeployer(jdbcResource).undeployResource(jdbcResource);

        //undeploy pool
        JdbcConnectionPool jdbcCp = new MyJdbcConnectionPool(desc, poolName);
        getDeployer(jdbcCp).undeployResource(jdbcCp);

        desc.setDeployed(false);
    }
View Full Code Here

Examples of org.glassfish.jdbc.config.JdbcConnectionPool

        //they would be available only to server instances that have a resoruce-ref
        //that maps to a pool. So deploy resource would not be called during
        //JDBC connection pool creation. The actualDeployResource method
        //below is invoked by JdbcResourceDeployer when a resource-ref for a
        //resource that is pointed to this pool is added to a server instance
        JdbcConnectionPool jcp = (JdbcConnectionPool)resource;
        PoolInfo poolInfo = new PoolInfo(jcp.getName(), applicationName, moduleName);
        if(_logger.isLoggable(Level.FINE)){
            _logger.fine(" JdbcConnectionPoolDeployer - deployResource : " + poolInfo + " calling actualDeploy");
        }
        actualDeployResource(resource, poolInfo);
    }
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.