Examples of JEConnectionFactory


Examples of com.sleepycat.je.jca.ra.JEConnectionFactory

      envConfig.setTransactional(true);
      envConfig.setAllowCreate(true);   
      InitialContext iniCtx = new InitialContext();
      Context enc = (Context) iniCtx.lookup("java:comp/env");
      Object ref = enc.lookup("ra/JEConnectionFactory");
      JEConnectionFactory dcf = (JEConnectionFactory) ref;
      JEConnection dc = dcf.getConnection(envDir, envConfig);
      return dc;
  } catch(Exception e) {
      System.err.println("Failure in getConnection " + e);
  }
  return null;
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.