Package org.glassfish.jersey.apache.connector

Examples of org.glassfish.jersey.apache.connector.ApacheConnector$ConnectionFactory


        // create a driver connection factory
        Properties properties = new Properties();
        properties.setProperty("user", "username");
        properties.setProperty("password", "password");
        ConnectionFactory connectionFactory = new DriverConnectionFactory(new TesterDriver(), "jdbc:apache:commons:testdriver", properties);

        // wrap it with a LocalXAConnectionFactory
        XAConnectionFactory xaConnectionFactory = new LocalXAConnectionFactory(transactionManager, connectionFactory);

        // create the pool object factory
View Full Code Here


        // pool will use to create Connections.
        // We'll use the DriverManagerConnectionFactory,
        // using the connect string passed in the command line
        // arguments.
        //
        ConnectionFactory connectionFactory =
            new DriverManagerConnectionFactory(connectURI,null);

        //
        // Next, we'll create the PoolableConnectionFactory, which wraps
        // the "real" Connections created by the ConnectionFactory with
View Full Code Here

        // pool will use to create Connections.
        // We'll use the DriverManagerConnectionFactory,
        // using the connect string passed in the command line
        // arguments.
        //
        ConnectionFactory connectionFactory =
            new DriverManagerConnectionFactory(connectURI,null);

        //
        // Next we'll create the PoolableConnectionFactory, which wraps
        // the "real" Connections created by the ConnectionFactory with
View Full Code Here

        // create a driver connection factory
        Properties properties = new Properties();
        properties.setProperty("user", "username");
        properties.setProperty("password", "password");
        ConnectionFactory connectionFactory = new DriverConnectionFactory(new TesterDriver(), "jdbc:apache:commons:testdriver", properties);

        // wrap it with a LocalXAConnectionFactory
        XAConnectionFactory xaConnectionFactory = new LocalXAConnectionFactory(transactionManager, connectionFactory);

        // create the pool object factory
View Full Code Here

            throw new SQLException("Transaction manager must be set before a connection can be created");
        }

        // If xa data source is not specified a DriverConnectionFactory is created and wrapped with a LocalXAConnectionFactory
        if (xaDataSource == null) {
            ConnectionFactory connectionFactory = super.createConnectionFactory();
            XAConnectionFactory xaConnectionFactory = new LocalXAConnectionFactory(getTransactionManager(), connectionFactory);
            transactionRegistry = xaConnectionFactory.getTransactionRegistry();
            return xaConnectionFactory;
        }
View Full Code Here

        // pool will use to create Connections.
        // We'll use the DriverManagerConnectionFactory,
        // using the connect string passed in the command line
        // arguments.
        //
        ConnectionFactory connectionFactory =
            new DriverManagerConnectionFactory(connectURI,null);

        //
        // Next we'll create the PoolableConnectionFactory, which wraps
        // the "real" Connections created by the ConnectionFactory with
View Full Code Here

    final PoolingClientConnectionManager clientConnectionManager = createPoolingClientConnectionManager(
        config, schemeRegistry);

    final ClientConfig clientConfig = createClientConfig(config,
        jacksonJsonProvider, httpParams, clientConnectionManager);
    final Connector connector = new ApacheConnector(clientConfig);
    clientConfig.connector(connector);
    clientConfig.register(new CsrfProtectionFilter(
        "DiscoveryDNS Reseller API Client"));
    final ClientBuilder clientBuilder = ClientBuilder.newBuilder();
    clientBuilder.withConfig(clientConfig);
View Full Code Here

    final PoolingClientConnectionManager clientConnectionManager = createPoolingClientConnectionManager(
        config, schemeRegistry);

    final ClientConfig clientConfig = createClientConfig(config,
        jacksonJsonProvider, httpParams, clientConnectionManager);
    final Connector connector = new ApacheConnector(clientConfig);
    clientConfig.connector(connector);
    clientConfig.register(new CsrfProtectionFilter(
        "DiscoveryDNS Reseller API Client"));
    final ClientBuilder clientBuilder = ClientBuilder.newBuilder();
    clientBuilder.withConfig(clientConfig);
View Full Code Here

    final PoolingClientConnectionManager clientConnectionManager = createPoolingClientConnectionManager(
        config, schemeRegistry);

    final ClientConfig clientConfig = createClientConfig(config,
        jacksonJsonProvider, httpParams, clientConnectionManager);
    final Connector connector = new ApacheConnector(clientConfig);
    clientConfig.connector(connector);
    clientConfig.register(new CsrfProtectionFilter(
        "DiscoveryDNS Reseller API Client"));
    final ClientBuilder clientBuilder = ClientBuilder.newBuilder();
    clientBuilder.withConfig(clientConfig);
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.apache.connector.ApacheConnector$ConnectionFactory

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.