Package org.apache.openejb.resource.jdbc.managed.local

Examples of org.apache.openejb.resource.jdbc.managed.local.ManagedDataSource


    public DataSource managed(final String name, final CommonDataSource ds) {
        final TransactionManager transactionManager = OpenEJB.getTransactionManager();
        if (XADataSource.class.isInstance(ds)) {
            return new ManagedXADataSource(XADataSource.class.cast(ds), transactionManager);
        }
        return new ManagedDataSource(DataSource.class.cast(ds), transactionManager);
    }
View Full Code Here


        CommonDataSource cds = findDelegate();
        if (cds instanceof XADataSource) {
            cds = new ManagedXADataSource(cds, transactionManager);
        } else {
            cds = new ManagedDataSource(DataSource.class.cast(cds), transactionManager);
        }

        if (logSql) {
            cds = DataSourceFactory.makeItLogging(cds);
        }
View Full Code Here

    public DataSource managed(final String name, final CommonDataSource ds) {
        final TransactionManager transactionManager = OpenEJB.getTransactionManager();
        if (ds instanceof XADataSource) {
            return new ManagedXADataSource(ds, transactionManager);
        }
        return new ManagedDataSource(DataSource.class.cast(ds), transactionManager);
    }
View Full Code Here

    public DataSource managed(final String name, final CommonDataSource ds) {
        final TransactionManager transactionManager = OpenEJB.getTransactionManager();
        if (ds instanceof XADataSource) {
            return new ManagedXADataSource(ds, transactionManager);
        }
        return new ManagedDataSource(DataSource.class.cast(ds), transactionManager);
    }
View Full Code Here

        final TransactionManager transactionManager = new TransactionManagerWrapper(OpenEJB.getTransactionManager(), name, xaResourceWrapper);
        final CommonDataSource ds = pool(name, driver, properties);
        if (ds instanceof XADataSource) {
            return new ManagedXADataSource(ds, transactionManager);
        }
        return new ManagedDataSource(DataSource.class.cast(ds), transactionManager);
    }
View Full Code Here

    public DataSource managed(final String name, final CommonDataSource ds) {
        final TransactionManager transactionManager = OpenEJB.getTransactionManager();
        if (ds instanceof XADataSource) {
            return new ManagedXADataSource(ds, transactionManager);
        }
        return new ManagedDataSource(DataSource.class.cast(ds), transactionManager);
    }
View Full Code Here

        final TransactionManager transactionManager = new TransactionManagerWrapper(OpenEJB.getTransactionManager(), name, xaResourceWrapper);
        final CommonDataSource ds = pool(name, driver, properties);
        if (ds instanceof XADataSource) {
            return new ManagedXADataSource(ds, transactionManager);
        }
        return new ManagedDataSource(DataSource.class.cast(ds), transactionManager);
    }
View Full Code Here

    public DataSource managed(final String name, final DataSource ds) {
        final TransactionManager transactionManager = OpenEJB.getTransactionManager();
        if (ds instanceof XADataSource) {
            return new ManagedXADataSource(ds, transactionManager);
        }
        return new ManagedDataSource(ds, transactionManager);
    }
View Full Code Here

        final TransactionManager transactionManager = new TransactionManagerWrapper(OpenEJB.getTransactionManager(), name, xaResourceWrapper);
        final DataSource ds = pool(name, driver, properties);
        if (ds instanceof XADataSource) {
            return new ManagedXADataSource(ds, transactionManager);
    }
        return new ManagedDataSource(ds, transactionManager);
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.resource.jdbc.managed.local.ManagedDataSource

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.