Examples of JMSOldConfigHolder


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

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

    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

Examples of org.talend.esb.transport.jms.wsdl11.JMSOldConfigHolder

    /**
     * {@inheritDoc}
     */
    public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target) throws IOException {
        JMSOldConfigHolder old = new JMSOldConfigHolder();
        JMSConfiguration jmsConf = old.createJMSConfigurationFromEndpointInfo(bus,
                                                                              endpointInfo,
                                                                              target,
                                                                              true);
        return new JMSConduit(endpointInfo, target, jmsConf, bus);
    }
View Full Code Here

Examples of org.talend.esb.transport.jms.wsdl11.JMSOldConfigHolder

    /**
     * {@inheritDoc}
     */
    public Destination getDestination(EndpointInfo endpointInfo) throws IOException {
        JMSOldConfigHolder old = new JMSOldConfigHolder();
        JMSConfiguration jmsConf = old.createJMSConfigurationFromEndpointInfo(bus, endpointInfo, null, false);
        return new JMSDestination(bus, endpointInfo, jmsConf);
    }
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.