Package org.apache.jackrabbit.core.config

Examples of org.apache.jackrabbit.core.config.DataSourceConfig


    }

    private String register(String url, String validationQuery, int maxCons) throws ConfigurationException,
            RepositoryException {
        final String name = "some random name to not interfere with integration tests...";
        DataSourceConfig dsc = new DataSourceConfig();
        Properties props = new Properties();
        props.put(DataSourceConfig.LOGICAL_NAME, name);
        props.put(DataSourceConfig.DRIVER, DRIVER);
        props.put(DataSourceConfig.URL, url);
        props.put(DataSourceConfig.DB_TYPE, "dbType");
        props.put(DataSourceConfig.MAX_POOL_SIZE, Integer.toString(maxCons));
        props.put(DataSourceConfig.VALIDATION_QUERY, validationQuery);
        dsc.addDataSourceDefinition(props);
        connectionFactory.registerDataSources(dsc);
        return name;
    }
View Full Code Here


    }

    private String register(String url, String validationQuery, int maxCons) throws ConfigurationException,
            RepositoryException {
        final String name = "some random name to not interfere with integration tests...";
        DataSourceConfig dsc = new DataSourceConfig();
        Properties props = new Properties();
        props.put(DataSourceConfig.DRIVER, DRIVER);
        props.put(DataSourceConfig.URL, url);
        props.put(DataSourceConfig.DB_TYPE, "dbType");
        props.put(DataSourceConfig.MAX_POOL_SIZE, Integer.toString(maxCons));
        props.put(DataSourceConfig.VALIDATION_QUERY, validationQuery);
        dsc.addDataSourceDefinition(name, props);
        connectionFactory.registerDataSources(dsc);
        return name;
    }
View Full Code Here

    }

    private String register(String url, String validationQuery, int maxCons) throws ConfigurationException,
            RepositoryException {
        final String name = "some random name to not interfere with integration tests...";
        DataSourceConfig dsc = new DataSourceConfig();
        Properties props = new Properties();
        props.put(DataSourceConfig.DRIVER, DRIVER);
        props.put(DataSourceConfig.URL, url);
        props.put(DataSourceConfig.DB_TYPE, "dbType");
        props.put(DataSourceConfig.MAX_POOL_SIZE, Integer.toString(maxCons));
        props.put(DataSourceConfig.VALIDATION_QUERY, validationQuery);
        dsc.addDataSourceDefinition(name, props);
        connectionFactory.registerDataSources(dsc);
        return name;
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.config.DataSourceConfig

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.