Package org.apache.cxf.transport.jms

Examples of org.apache.cxf.transport.jms.JMSOldConfigHolder


        connectionFactory = new PooledConnectionFactory(BROKER_URI);
        TestReceiver receiver = new TestReceiver(connectionFactory, SERVICE_QUEUE, true);
        receiver.runAsync();

        JMSOldConfigHolder holder = new JMSOldConfigHolder();
        EndpointInfo ei = new EndpointInfo();
        String address = "jms:jndi:dynamicQueues/" + SERVICE_QUEUE
            + "?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory"
            + "&replyToName=dynamicQueues/" + replyDestination
            + "&messageType=text"
            + "&jndiConnectionFactoryName=ConnectionFactory"
            + "&jndiURL=" + BROKER_URI;
        ei.setAddress(address);
        JMSConfiguration jmsConfig = holder.createJMSConfigurationFromEndpointInfo(bus, ei , null, true);
        JMSConduit conduit = new JMSConduit(target, jmsConfig, bus);
        Exchange exchange = new ExchangeImpl();
        exchange.setSynchronous(synchronous);
        Message message = new MessageImpl();
        exchange.setOutMessage(message);
View Full Code Here


    public void twoWayTestWithCreateMessage(final TestCaseType testcase) throws Exception {
        String address = testcase.getAddress();
       
        EndpointInfo endpointInfo = new EndpointInfo();
        endpointInfo.setAddress(address);
        JMSOldConfigHolder oldConfig = new JMSOldConfigHolder();
        JMSConfiguration jmsConfig = oldConfig
            .createJMSConfigurationFromEndpointInfo(staticBus, endpointInfo , null, true);
       
        ResourceCloser closer = new ResourceCloser();
        try {
            Connection connection = closer.register(JMSFactory.createConnection(jmsConfig));
View Full Code Here

TOP

Related Classes of org.apache.cxf.transport.jms.JMSOldConfigHolder

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.