Package org.apache.cactus

Examples of org.apache.cactus.JmsRequest


        JmsTestCase jmsInstance = (JmsTestCase) theTestInstance;

        // Sets the request field of the test case class
        // ---------------------------------------------
        // Extract from the JMS request the queue to simulate (if any)
        JmsRequest request =
            mdbImplicitObjects.getRequest();

        String nameOfQueue = request.getQueueName();
       
        QueueConnectionFactory qcf = ((QueueConnectionFactory)
        ((InitialContext)mdbImplicitObjects.getMessageDrivenBeanContext()).lookup(nameOfQueue));
       
        Method respondMethod = jmsInstance.getClass().getMethod("getJMSReplyTo", new Class[]{});
View Full Code Here


    /**
     * A method to create a request object.
     * @return Request
     */
    public Request createRequest() {
        return new JmsRequest(session);
    }
View Full Code Here

            Request theRequest) throws Throwable
    {
        // Create the JMS Request object and creates necessary JMS objects
        // so that the user can get them in his beginXXX method, so that he
        // can create the message to send.
        JmsRequest request = new JmsRequest(
            JmsClientHelper.getQueueSession());

        // Add Cactus information to the JMS Message
        request.getMessage().setStringProperty(
            ServiceDefinition.CLASS_NAME_PARAM, theDelegatedTest.getClass().getName());
        request.getMessage().setStringProperty(
            ServiceDefinition.METHOD_NAME_PARAM, (getCurrentTestName(theDelegatedTest)));

        // Start the test
        new JmsClient().doTest(request);
       
View Full Code Here

TOP

Related Classes of org.apache.cactus.JmsRequest

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.