Examples of jdbcDataSource


Examples of org.hsqldb.jdbc.jdbcDataSource

    public void testDirectDataSource() throws Exception {

        final Properties properties = new Properties();

        final jdbcDataSource dataSource = new jdbcDataSource();
        dataSource.setDatabase("jdbc:hsqldb:mem:testdb" + System.currentTimeMillis());
        dataSource.setUser("sa");
        dataSource.setPassword("");
        dataSource.getConnection().close();

        properties.put("DataSource", dataSource);
        properties.put("UseDatabaseLock", "false");

        ActiveMQFactory.setThreadProperties(properties);
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

    public void testLookupDataSource() throws Exception {

        final Properties properties = new Properties();

        final jdbcDataSource dataSource = new jdbcDataSource();
        dataSource.setDatabase("jdbc:hsqldb:mem:testdb" + System.currentTimeMillis());
        dataSource.setUser("sa");
        dataSource.setPassword("");
        dataSource.getConnection().close();

        MockInitialContextFactory.install(Collections.singletonMap("openejb/Resource/TestDs", dataSource));
        assertSame(dataSource, new InitialContext().lookup("openejb/Resource/TestDs"));

        final CoreContainerSystem containerSystem = new CoreContainerSystem(new IvmJndiFactory());
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

     * (non-Javadoc)
     *
     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception {
        ds = new jdbcDataSource();
        ds.setDatabase("jdbc:hsqldb:mem:ftpd");
        ds.setUser("sa");
        ds.setPassword("");

        createDatabase();
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

    public void setDeployDir(File depDir) {
        _deployDir = depDir;
    }

    public static DataSource createInternalDS(String guid) {
        jdbcDataSource hsqlds = new jdbcDataSource();
        hsqlds.setDatabase("jdbc:hsqldb:mem:" + guid);
        hsqlds.setUser("sa");
        hsqlds.setPassword("");
        return hsqlds;
    }
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

    jdbcDataSource hsqlds;

    ConfStoreConnectionFactory cf;

    public void setUp() throws Exception {
        hsqlds = new jdbcDataSource();
        hsqlds.setDatabase("jdbc:hsqldb:mem:test");
        hsqlds.setUser("sa");
        hsqlds.setPassword("");

        cf = new DbConfStoreConnectionFactory(hsqlds, true);
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

    DataSource _ds;
    BPELDAOConnectionFactoryImpl factory;

    @Override
  protected void setUp() throws Exception {
        jdbcDataSource hsqlds = new jdbcDataSource();
        hsqlds.setDatabase("jdbc:hsqldb:mem:" + new GUID().toString());
        hsqlds.setUser("sa");
        hsqlds.setPassword("");
        _ds = hsqlds;

        _txm = new EmbeddedGeronimoFactory().getTransactionManager();

        factory = new BPELDAOConnectionFactoryImpl();
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

        _txManager.setTransactionTimeout(30);
        return _txManager;
    }

    protected DataSource createDataSource() throws Exception {
        jdbcDataSource hsqlds = new jdbcDataSource();
        hsqlds.setDatabase("jdbc:hsqldb:mem:" + new GUID().toString());
        hsqlds.setUser("sa");
        hsqlds.setPassword("");
        _dataSource = hsqlds;
        return _dataSource;
    }
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

    DataSource _ds;
    BPELDAOConnectionFactoryImpl factory;

    @Override
  protected void setUp() throws Exception {
        jdbcDataSource hsqlds = new jdbcDataSource();
        hsqlds.setDatabase("jdbc:hsqldb:mem:" + new GUID().toString());
        hsqlds.setUser("sa");
        hsqlds.setPassword("");
        _ds = hsqlds;

        _txm = new EmbeddedGeronimoFactory().getTransactionManager();

        factory = new BPELDAOConnectionFactoryImpl();
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

    private jdbcDataSource _ds;
    private JdbcDelegate _del;

    public DelegateSupport() throws Exception {
        _ds = new jdbcDataSource();
        _ds.setDatabase("jdbc:hsqldb:mem:" + new GUID().toString());
        _ds.setUser("sa");
        _ds.setPassword("");
       
        setup();
View Full Code Here

Examples of org.hsqldb.jdbc.jdbcDataSource

        _txManager.setTransactionTimeout(30);
        return _txManager;
    }

    protected DataSource createDataSource() throws Exception {
        jdbcDataSource hsqlds = new jdbcDataSource();
        hsqlds.setDatabase("jdbc:hsqldb:mem:" + new GUID().toString());
        hsqlds.setUser("sa");
        hsqlds.setPassword("");
        _dataSource = hsqlds;
        return _dataSource;
    }
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.