Package pl.net.bluesoft.rnd.pt.utils.jdbc.exception

Examples of pl.net.bluesoft.rnd.pt.utils.jdbc.exception.DataSourceDiscoveryFailedException


        DataSource ds = null;
        try {
            ds = (DataSource) new InitialContext().lookup(name);
        }
        catch (NamingException e) {
            throw new DataSourceDiscoveryFailedException(e);
        }

        if (ds == null) {
            throw new DataSourceDiscoveryFailedException("Unable to find data source by JNDI name: " + name);
        }
        return ds;
    }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.pt.utils.jdbc.exception.DataSourceDiscoveryFailedException

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.