Examples of ConnectionFactory


Examples of org.infinispan.loader.jdbc.connectionfactory.ConnectionFactory

   public void start() throws CacheLoaderException {
      super.start();
      String connectionFactoryClass = config.getConnectionFactoryConfig().getConnectionFactoryClass();
      if (config.isManageConnectionFatory()) {
         ConnectionFactory factory = ConnectionFactory.getConnectionFactory(connectionFactoryClass);
         factory.start(config.getConnectionFactoryConfig());
         doConnectionFactoryInitialization(factory);
      }
   }
View Full Code Here

Examples of org.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory

   public void start() throws CacheLoaderException {
      super.start();
      String connectionFactoryClass = config.getConnectionFactoryConfig().getConnectionFactoryClass();
      if (config.isManageConnectionFactory()) {
         ConnectionFactory factory = ConnectionFactory.getConnectionFactory(connectionFactoryClass);
         factory.start(config.getConnectionFactoryConfig());
         doConnectionFactoryInitialization(factory);
      }
      dmHelper = new DataManipulationHelper(connectionFactory, tableManipulation, marshaller) {
         @Override
         protected String getLoadAllKeysSql() {
View Full Code Here

Examples of org.infinispan.persistence.jdbc.connectionfactory.ConnectionFactory

      assertStringsRowCount(strings);
   }

   private void assertStringsRowCount(int rowCount) {
      JdbcMixedStore store = (JdbcMixedStore) cacheStore;
      ConnectionFactory connectionFactory = store.getConnectionFactory();
      TableName tableName = stringsTm.getTableName();
      int value = UnitTestDatabaseManager.rowCount(connectionFactory, tableName);
      assert value == rowCount : "Expected " + rowCount + " rows, actual value is " + value;
   }
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.messaging.model.ConnectionFactory

                String name = factoryProp.getName();

                ModelNode factoryValue = factoryProp.getValue();
                String jndi = factoryValue.get("entries").asList().get(0).asString();

                ConnectionFactory connectionFactory = factoryAdapter.fromDMR(factoryValue);
                connectionFactory.setName(name);
                connectionFactory.setJndiName(jndi);

                if(factoryValue.hasDefined("connector"))
                {
                    List<Property> items = factoryValue.get("connector").asPropertyList();
                    String list = "";
                    for(Property item : items)
                        list+= " "+item.getName();

                    connectionFactory.setConnector(list);
                }

                factoryModels.add(connectionFactory);
            }
View Full Code Here

Examples of org.jboss.blacktie.jatmibroker.xatmi.ConnectionFactory

   */
  public JABSession(JABSessionAttributes attributes) throws JABException {
    log.debug("JABSession constructor");
    try {
      jabSessionAttributes = attributes;
      ConnectionFactory connectionFactory = ConnectionFactory
          .getConnectionFactory();
      connection = connectionFactory.getConnection();
    } catch (Exception e) {
      throw new JABException("Error connect to domain: "
          + jabSessionAttributes.getProperties().get(
              "blacktie.domain.name"), e);
    }
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory

  public AdministrationProxy() throws IOException, ConfigurationException {
    log.debug("Administration Proxy");
    XMLParser.loadProperties("btconfig.xsd", "btconfig.xml", prop);
    servers = (List<String>) prop.get("blacktie.domain.servers");
    ConnectionFactory cf = ConnectionFactory.getConnectionFactory();
    connection = cf.getConnection();

    beanServerConnection = org.jboss.mx.util.MBeanServerLocator
        .locateJBoss();
    log.debug("Created Administration Proxy");
  }
View Full Code Here

Examples of org.jitterbit.integration.server.db.infoprovider.ConnectionFactory

public class DatabaseInfoRetrieverTest {

    public static void main(String[] args) throws Exception {
        ConnectionParams params = createParams();
        SourceId sourceGuid = new SourceId("475118e7-1b59-4371-bc09-598c19b12385");
        ConnectionFactory connectionFactory = new DefaultConnectionFactory(params, sourceGuid, null);
        DatabaseInfoRetriever r = new DatabaseInfoRetriever(connectionFactory);
        DatabaseInfo info = r.getInfo();
        System.out.println("Quote: " + info.getBeginEndQuote());
        System.out.println("Tables:");
        for (DatabaseObject o : info.getObjects()) {
View Full Code Here

Examples of org.jpox.ConnectionFactory

        if (cfElem != null)
        {
            txConnectionFactoryName = cfElem.getAttribute("name");
            try
            {
                ConnectionFactory cf = (ConnectionFactory)omfContext.getPluginManager().createExecutableExtension(
                    "org.jpox.store_connectionfactory",
                    new String[] {"datastore", "transactional"},
                    new String[] {storeManagerKey, "true"}, "class-name",
                    new Class[] {OMFContext.class, String.class},
                    new Object[] {omfContext, "tx"});
                omfContext.getConnectionFactoryRegistry().registerConnectionFactory(txConnectionFactoryName, cf);
                if (JPOXLogger.CONNECTION.isDebugEnabled())
                {
                    JPOXLogger.CONNECTION.debug(LOCALISER.msg("032018", txConnectionFactoryName));
                }
            }
            catch (Exception e)
            {
                throw new JPOXException("Error creating transactional connection factory", e).setFatal();
            }
        }
        else
        {
            throw new JPOXException("Error creating transactional connection factory. No connection factory plugin defined");
        }

        // Factory for connections - nontransactional
        cfElem = omfContext.getPluginManager().getConfigurationElementForExtension(
            "org.jpox.store_connectionfactory",
            new String[] {"datastore", "transactional"}, new String[] {storeManagerKey, "false"});
        if (cfElem != null)
        {
            nontxConnectionFactoryName = cfElem.getAttribute("name");
            try
            {
                ConnectionFactory cf = (ConnectionFactory)omfContext.getPluginManager().createExecutableExtension(
                    "org.jpox.store_connectionfactory",
                    new String[] {"datastore", "transactional"},
                    new String[] {storeManagerKey, "false"}, "class-name",
                    new Class[] {OMFContext.class, String.class},
                    new Object[] {omfContext, "nontx"});
View Full Code Here

Examples of org.mc4j.ems.connection.ConnectionFactory

            if (connectionSettings.getAdvancedProperties() == null) {
               connectionSettings.setAdvancedProperties(new Properties());
            }

            ConnectionFactory connectionFactory = new ConnectionFactory();


            ConnectionProvider connectionProvider = connectionFactory.getConnectionProvider(connectionSettings);
            this.connection = connectionProvider.connect();

            this.connection.loadSynchronous(false); // this loads all the MBeans

            this.consecutiveConnectionErrors = 0;
View Full Code Here

Examples of org.mule.module.db.internal.domain.connection.ConnectionFactory

                throw new InitialisationException(e, this);
            }
        }
        dataSource = decorateDataSourceIfRequired(dataSource);

        ConnectionFactory connectionFactory;
        if (retryPolicyTemplate == null)
        {
            connectionFactory = new SimpleConnectionFactory();
        }
        else
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.