Package org.codehaus.activemq.bean

Examples of org.codehaus.activemq.bean.Requestor


    public void testRequestReply() throws Exception {
       
       
       
        Requestor requestor = new Requestor((QueueSession) session, queue);

        TextMessage message = session.createTextMessage("Hello! " + new Date());

        System.out.println("About to send: " + message);


        Message answer = requestor.request(message);

        assertTrue("Should have received an answer", answer != null);

        System.out.println("Received: " + answer);
    }
View Full Code Here


*/
public class JCAContainerRequestReplyTest extends JCAContainerTestSupport {

    public void testRequestReply() throws Exception {
        Queue queue = session.createQueue(getClass().getName());
        Requestor requestor = new Requestor((QueueSession) session, queue);

        TextMessage message = session.createTextMessage("Hello! " + new Date());

        System.out.println("About to send: " + message);


        Message answer = requestor.request(message);

        assertTrue("Should have received an answer", answer != null);

        System.out.println("Received: " + answer);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.bean.Requestor

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.