Package org.osgi.service.jdbc

Examples of org.osgi.service.jdbc.DataSourceFactory


          tracker.open();
        else
          tracker = trackerRef.get();
      }
     
      DataSourceFactory dsf = tracker.getService();
      if(dsf != null) {
        try {
          if(jta) {
            ds.compareAndSet(null, wrapXADataSource(dsf.createXADataSource(props)));
          } else {
            ds.compareAndSet(null, dsf.createDataSource(props));
          }
        } catch (SQLException e) {
          String message = NLS.MESSAGES.getMessage("datasourcefactory.sql.exception", driverName, props,
              persistenceBundle.getSymbolicName(), persistenceBundle.getVersion());
          _logger.error(message, e);
View Full Code Here

TOP

Related Classes of org.osgi.service.jdbc.DataSourceFactory

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.