Package org.logicblaze.lingo.jms.impl

Examples of org.logicblaze.lingo.jms.impl.MultiplexingRequestor


        if (correlationID == null) {
            correlationID = requestor.createCorrelationID();
            remoteObjects.put(value, correlationID);
        }
        if (requestor instanceof MultiplexingRequestor) {
            MultiplexingRequestor multiplexingRequestor = (MultiplexingRequestor) requestor;
            multiplexingRequestor.registerHandler(correlationID, new AsyncReplyHandler(value, marshaller));
        }
        else {
            throw new IllegalArgumentException("You can only pass remote references with a MultiplexingRequestor");
        }
        return correlationID;
View Full Code Here


        factoryBean.afterPropertiesSet(); // init factory bean
       
        // test requestor if it's correctly configured
        Requestor requestor = factoryBean.getRequestor();
        assertTrue(requestor instanceof MultiplexingRequestor);
        MultiplexingRequestor mpxRequestor = (MultiplexingRequestor) requestor;
       
        // expected: persistent delivery
        assertEquals(DeliveryMode.PERSISTENT, mpxRequestor.getDeliveryMode());
        assertEquals(5000, mpxRequestor.getTimeToLive());
    }
View Full Code Here

    }

    protected Requestor createRequestor(String name) throws Exception {
        Session session = createSession();
        JmsProducer producer = createJmsProducer();
        return new MultiplexingRequestor(session, producer, session.createQueue(name));
    }
View Full Code Here

TOP

Related Classes of org.logicblaze.lingo.jms.impl.MultiplexingRequestor

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.