Package org.jboss.dashboard.database

Examples of org.jboss.dashboard.database.DataSourceManager


    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
        try {
            if (dataSource != null) {
                HibernateInitializer hbnInitializer = CoreServices.lookup().getHibernateInitializer();
                DataSourceManager dataSourceManager = CoreServices.lookup().getDataSourceManager();
                DataSource ds = dataSourceManager.getDatasource(dataSource);
                dataBaseName = hbnInitializer.inferDatabaseName(ds);
            }
        } catch (Exception e) {
            log.error("Cannot get datasource named " + dataSource,e);
        }
View Full Code Here


    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
        try {
            if (dataSource != null) {
                HibernateInitializer hbnInitializer = CoreServices.lookup().getHibernateInitializer();
                DataSourceManager dataSourceManager = CoreServices.lookup().getDataSourceManager();
                DataSource ds = dataSourceManager.getDataSource(dataSource);
                dataBaseName = hbnInitializer.inferDatabaseName(ds);
            }
        } catch (Exception e) {
            log.error("Cannot get datasource named " + dataSource,e);
        }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.database.DataSourceManager

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.