Package org.jboss.as.test.integration.common.jms

Examples of org.jboss.as.test.integration.common.jms.JMSOperations


        private static final String QUEUE_NAME = "Queue-for-" + PooledEJBLifecycleTestCase.class.getName();

        @Override
        public void setup(ManagementClient managementClient, String containerId) throws Exception {
            // create the JMS queue
            final JMSOperations jmsOperations = JMSOperationsProvider.getInstance(managementClient);
            jmsOperations.createJmsQueue(QUEUE_NAME, Constants.QUEUE_JNDI_NAME);
        }
View Full Code Here


        }

        @Override
        public void tearDown(ManagementClient managementClient, String containerId) throws Exception {
            // destroy the JMS queue
            final JMSOperations jmsOperations = JMSOperationsProvider.getInstance(managementClient);
            jmsOperations.removeJmsQueue(QUEUE_NAME);
        }
View Full Code Here

    }

    @Test
    public void testCloseConsumerConnectionsForAddress() throws Exception {

        JMSOperations adminSupport = JMSOperationsProvider.getInstance(managementClient);
        adminSupport.createJmsQueue(getQueueName(), getQueueJndiName());

        Connection connection = connectionFactory.createConnection("guest", "guest");
        HornetQQueue queue = HornetQDestination.createQueue(getQueueName());

        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
View Full Code Here

TOP

Related Classes of org.jboss.as.test.integration.common.jms.JMSOperations

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.