Package org.apache.activemq

Examples of org.apache.activemq.ActiveMQSslConnectionFactory


    }

    public void openwireConnectTo(String connectorName, String username, String password) throws Exception {
        URI brokerURI = broker.getConnectorByName(connectorName).getConnectUri();
        String uri = "ssl://" + brokerURI.getHost() + ":" + brokerURI.getPort();
        ActiveMQSslConnectionFactory cf = new ActiveMQSslConnectionFactory(uri);
        cf.setTrustStore("org/apache/activemq/security/broker1.ks");
        cf.setTrustStorePassword("password");
        cf.setKeyStore("org/apache/activemq/security/client.ks");
        cf.setKeyStorePassword("password");
        ActiveMQConnection connection = null;
        if (username != null || password != null) {
            connection = (ActiveMQConnection)cf.createConnection(username, password);
        } else {
            connection = (ActiveMQConnection)cf.createConnection();
        }
        TestCase.assertNotNull(connection);
        connection.start();
        connection.stop();
    }
View Full Code Here


    }

    public void openwireConnectTo(String connectorName, String username, String password) throws Exception {
        URI brokerURI = broker.getConnectorByName(connectorName).getConnectUri();
        String uri = "ssl://" + brokerURI.getHost() + ":" + brokerURI.getPort();
        ActiveMQSslConnectionFactory cf = new ActiveMQSslConnectionFactory(uri);
        cf.setTrustStore("org/apache/activemq/security" + sep + "broker1.ks");
        cf.setTrustStorePassword("password");
        cf.setKeyStore("org/apache/activemq/security" + sep + "client.ks");
        cf.setKeyStorePassword("password");
        ActiveMQConnection connection = null;
        if (username != null || password != null) {
            connection = (ActiveMQConnection)cf.createConnection(username, password);
        } else {
            connection = (ActiveMQConnection)cf.createConnection();
        }
        TestCase.assertNotNull(connection);
        connection.start();
        connection.stop();
    }
View Full Code Here

    // monitoring bits
    private ManagedActiveMQConnection managedSonicConnection = new ManagedActiveMQConnection();

    public ActiveMQEventTransportImpl() throws JMSException {
        this(new ActiveMQSslConnectionFactory());
    }
View Full Code Here

        return ActiveMQSession.INDIVIDUAL_ACKNOWLEDGE;
    }

    @Override
    protected void initConnectionFactory(javax.jms.ConnectionFactory connectionFactory) {
        ActiveMQSslConnectionFactory activeMQConnectionFactory = (ActiveMQSslConnectionFactory) connectionFactory;//NOSONAR

        // TODO: Setup
//        activeMQConnectionFactory.setConnectionURLs(destinationUrl);

//        activeMQConnectionFactory.setLoadBalancing(loadBalancing);
View Full Code Here

TOP

Related Classes of org.apache.activemq.ActiveMQSslConnectionFactory

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.