Package org.apache.activemq.broker.jmx

Examples of org.apache.activemq.broker.jmx.BrokerView.destroyDurableSubscriber()


        assertEquals(1, brokerView.getDurableTopicSubscribers().length);

        LOG.info("Current Durable Topic Subscriptions: " + brokerView.getDurableTopicSubscribers().length);

        try {
            brokerView.destroyDurableSubscriber("subscriber1", "myTopic");
            fail("Expected Exception for Durable consumer is in use");
        } catch(Exception e) {
            LOG.info("Recieved expected exception: " + e.getMessage());
        }
View Full Code Here


                return brokerView.getInactiveDurableTopicSubscribers().length == 1;
            }
        }));

        try {
            brokerView.destroyDurableSubscriber("subscriber1", "myTopic");
        } finally {
            producer.close();
            producerConnection.close();
        }
    }
View Full Code Here

                return brokerView.getTopics().length == 0;
            }
        }));

        try {
            brokerView.destroyDurableSubscriber("subscriber1", "myTopic");
        } catch(Exception e) {
            fail("Exception not expected when attempting to delete Durable consumer.");
        }

        assertTrue("Should be no durable consumers active or inactive.", Wait.waitFor(new Wait.Condition() {
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.