Examples of PoolingDataSource


Examples of bitronix.tm.resource.jdbc.PoolingDataSource

    PoolingDataSource ds1;

    @Override
    protected void setUp() throws Exception {
        ds1 = new PoolingDataSource();
        ds1.setUniqueName( "jdbc/testDS1" );
        ds1.setClassName( "org.h2.jdbcx.JdbcDataSource" );
        ds1.setMaxPoolSize( 3 );
        ds1.setAllowLocalTransactions( true );
        ds1.getDriverProperties().put( "user",
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

    private PoolingDataSource ds1;
    private EntityManagerFactory emf;
   
    @Before
    public void setUp() throws Exception {
        ds1 = new PoolingDataSource();
        ds1.setUniqueName( "jdbc/testDS1" );
        ds1.setClassName( "org.h2.jdbcx.JdbcDataSource" );
        ds1.setMaxPoolSize( 3 );
        ds1.setAllowLocalTransactions( true );
        ds1.getDriverProperties().put( "user",
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

        System.out.println("Task service started correctly !");
        System.out.println("Task service running ...");
   
  }
  protected static void startPersistenceServer(){
    ds1 = new PoolingDataSource();
        ds1.setClassName("bitronix.tm.resource.jdbc.lrc.LrcXADataSource");
      ds1.setUniqueName("jdbc/testDS1");
      ds1.setMaxPoolSize(5);
      ds1.setAllowLocalTransactions(true);
      ds1.getDriverProperties().setProperty("driverClassName", "org.h2.Driver");
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

    return persistence;
  }
   
    protected void setUp() {
      if (persistence) {
        ds1 = new PoolingDataSource();
          ds1.setClassName("bitronix.tm.resource.jdbc.lrc.LrcXADataSource");
        ds1.setUniqueName("jdbc/testDS1");
        ds1.setMaxPoolSize(5);
        ds1.setAllowLocalTransactions(true);
        ds1.getDriverProperties().setProperty("driverClassName", "org.h2.Driver");
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

      super.finalize();
    }
   
    protected void setUp() {
     
        ds1 = new PoolingDataSource();
        ds1.setClassName("bitronix.tm.resource.jdbc.lrc.LrcXADataSource");
      ds1.setUniqueName("jdbc/testDS1");
      ds1.setMaxPoolSize(5);
      ds1.setAllowLocalTransactions(true);
      ds1.getDriverProperties().setProperty("driverClassName", "org.h2.Driver");
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

    PoolingDataSource ds1;

    @Override
    protected void setUp() throws Exception {
        ds1 = new PoolingDataSource();
        ds1.setUniqueName( "jdbc/testDS1" );
        ds1.setClassName( "org.h2.jdbcx.JdbcDataSource" );
        ds1.setMaxPoolSize( 3 );
        ds1.setAllowLocalTransactions( true );
        ds1.getDriverProperties().put( "user",
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

    private PoolingDataSource ds1;
    private EntityManagerFactory emf;

    @Before
    public void setUp() throws Exception {
        ds1 = new PoolingDataSource();
        ds1.setUniqueName( "jdbc/testDS1" );
        ds1.setClassName( "org.h2.jdbcx.JdbcDataSource" );
        ds1.setMaxPoolSize( 3 );
        ds1.setAllowLocalTransactions( true );
        ds1.getDriverProperties().put( "user",
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

          testOptions.getXaDataSource().getClass().getName()).newInstance();
      setXADSProperties(realInTestDs, testOptions.getUrl().replace(":p6spy", ""),
          testOptions.getUser(), testOptions.getPassword());
      jndiResources.add(new Resource("jdbc/realInTestDs", realInTestDs));

      final PoolingDataSource inTestDs = new PoolingDataSource();
      inTestDs.setClassName(P6DataSource.class.getName());
      inTestDs.setUniqueName("jdbc/inTestDs");
      inTestDs.setMaxPoolSize(10);
      inTestDs.getDriverProperties().setProperty("realDataSource", "jdbc/realInTestDs");
      inTestDs.setAllowLocalTransactions(true);
      inTestDs.init();
      jndiResources.add(new Resource("jdbc/inTestDs", inTestDs));
      poolingDSs.add(inTestDs);
    }

    // fixed DS setup
    {
      final XADataSource realFixedDs = (XADataSource) P6Util.forName("org.h2.jdbcx.JdbcDataSource")
          .newInstance();
      setXADSProperties(realFixedDs, "jdbc:h2:mem:p6spy_realFixedDs", "sa", "sa");
      jndiResources.add(new Resource("jdbc/realFixedDs", realFixedDs));

      final PoolingDataSource fixedDs = new PoolingDataSource();
      fixedDs.setClassName(P6DataSource.class.getName());
      fixedDs.setUniqueName("jdbc/fixedDs");
      fixedDs.setMaxPoolSize(10);
      fixedDs.getDriverProperties().setProperty("realDataSource", "jdbc/realFixedDs");
      fixedDs.setAllowLocalTransactions(true);
      fixedDs.init();
      jndiResources.add(new Resource("jdbc/fixedDs", fixedDs));
      poolingDSs.add(fixedDs);
    }

    // liquibase opens it's own transaction => keep it out of ours
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource



        System.out.println(">>> Starting Human Task Server ...");

        ds1 = new PoolingDataSource();
        ds1.setUniqueName("jdbc/testDS1");

        //ds1.setClassName("com.mysql.jdbc.jdbc2.optional.MysqlXADataSource");
        ds1.setClassName("org.h2.jdbcx.JdbcDataSource");
        ds1.setMaxPoolSize(5);
View Full Code Here

Examples of bitronix.tm.resource.jdbc.PoolingDataSource

      throw new RuntimeException("can't start h2 server db",e);
    }
    }
   
    protected void setUp() {
      ds1 = new PoolingDataSource();
        ds1.setClassName("bitronix.tm.resource.jdbc.lrc.LrcXADataSource");
      ds1.setUniqueName("jdbc/testDS1");
      ds1.setMaxPoolSize(5);
      ds1.setAllowLocalTransactions(true);
      ds1.getDriverProperties().setProperty("driverClassName", "org.h2.Driver");
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.