Package org.apache.activemq

Examples of org.apache.activemq.ActiveMQConnection.destroyDestination()


        producer.close();
        session.close();

        Thread.sleep( 3000 );
       
        amqConnection.destroyDestination( (ActiveMQDestination)topic );
       
        Thread.sleep( 3000 );

        assertFalse( destinationSource.getTopics().contains(amqTopic) );
    }
View Full Code Here


       
        assertTrue( destinationSource.getTopics().contains(amqTopic) );

        // This line generates a broker error since the consumer is still active.
        try{
            amqConnection.destroyDestination( (ActiveMQDestination)topic );
            fail("expect exception on destroy if comsumer present");
        } catch( JMSException expected ) {
            assertTrue(expected.getMessage().indexOf(amqTopic.getTopicName()) != -1);
        }
View Full Code Here

        Thread.sleep( 3000 );

        // The destination will not be removed with this call, but if you remove the call
        // above that generates the error it will.
        amqConnection.destroyDestination( amqTopic );

        Thread.sleep( 3000 );

        assertFalse( destinationSource.getTopics().contains(amqTopic) );
        assertFalse(destinationPresentInAdminView(broker, amqTopic));
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.