Package net.sf.hajdbc.sql

Examples of net.sf.hajdbc.sql.DataSourceDatabaseClusterConfiguration


    db2.setProperty("user", "sa");
    db2.setProperty("password", "");
    db2.setUser("sa");
    db2.setPassword("");
   
    DataSourceDatabaseClusterConfiguration config = new DataSourceDatabaseClusterConfiguration();
   
    config.setDatabases(Arrays.asList(db1, db2));
    config.setDialectFactory(new HSQLDBDialectFactory());
    config.setDatabaseMetaDataCacheFactory(new SimpleDatabaseMetaDataCacheFactory());
    config.setStateManagerFactory(factory);
//    config.setDispatcherFactory(new JGroupsCommandDispatcherFactory());
    config.setDurabilityFactory(new FineDurabilityFactory());

    DataSource ds = new DataSource();
    ds.setCluster("cluster");
    ds.setConfigurationFactory(new SimpleDatabaseClusterConfigurationFactory<javax.sql.DataSource, DataSourceDatabase>(config));
   
View Full Code Here


    db2.setProperty("user", "sa");
    db2.setProperty("password", "");
    db2.setUser("sa");
    db2.setPassword("");
   
    DataSourceDatabaseClusterConfiguration config = new DataSourceDatabaseClusterConfiguration();
   
    config.setDatabases(Arrays.asList(db1, db2));
    config.setDialectFactory(new HSQLDBDialectFactory());
    config.setDatabaseMetaDataCacheFactory(new SimpleDatabaseMetaDataCacheFactory());
    config.setStateManagerFactory(factory);
//    config.setDispatcherFactory(new JGroupsCommandDispatcherFactory());
    config.setDurabilityFactory(new FineDurabilityFactory());

    DataSource ds = new DataSource();
    ds.setCluster("cluster");
    ds.setConfigurationFactory(new SimpleDatabaseClusterConfigurationFactory<javax.sql.DataSource, DataSourceDatabase>(config));
   
View Full Code Here

    db2.setProperty("user", "sa");
    db2.setProperty("password", "");
    db2.setUser("sa");
    db2.setPassword("");
   
    DataSourceDatabaseClusterConfiguration config = new DataSourceDatabaseClusterConfiguration();
   
    config.setDatabases(Arrays.asList(db1, db2));
    config.setDialectFactory(new HSQLDBDialectFactory());
    config.setDatabaseMetaDataCacheFactory(new SimpleDatabaseMetaDataCacheFactory());
    config.setStateManagerFactory(factory);
//    config.setDispatcherFactory(new JGroupsCommandDispatcherFactory());
    config.setDurabilityFactory(new FineDurabilityFactory());

    DataSource ds = new DataSource();
    ds.setCluster("cluster");
    ds.setConfigurationFactory(new SimpleDatabaseClusterConfigurationFactory<javax.sql.DataSource, DataSourceDatabase>(config));
   
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.sql.DataSourceDatabaseClusterConfiguration

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.