Examples of JNDIConnectionFactory


Examples of hermes.JNDIConnectionFactory

    destinationConfigsAsList.add(destConfig);
  }

  public Context createContext() throws NamingException, JMSException {
    if (connectionFactory instanceof JNDIConnectionFactory) {
      JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory;
      return jndiCF.createContext();
    } else {
      return null;
    }
  }
View Full Code Here

Examples of org.castor.jdo.engine.JNDIConnectionFactory

        if (jdoConf.getDatabase(0).getDatabaseChoice().getDriver() != null) {
            factory = new DriverConnectionFactory(jdoConf, 0, null);
        } else if (jdoConf.getDatabase(0).getDatabaseChoice().getDataSource() != null) {
            factory = new DataSourceConnectionFactory(jdoConf, 0, new Mapping());
        } else if (jdoConf.getDatabase(0).getDatabaseChoice().getDriver() != null) {
            factory = new JNDIConnectionFactory(jdoConf, 0, null);
        }
       
        factory.initializeFactory();
       
        _connection = factory.createConnection();
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.