Package org.apache.activemq.broker.jmx

Examples of org.apache.activemq.broker.jmx.TopicSubscriptionViewMBean


      assertTrue(subscriptionNames.length > 0);

      boolean fail = true;
      for(ObjectName name : subscriptionNames) {
        if (name.toString().contains("TopicViewTestTopic")) {
                TopicSubscriptionViewMBean sub = (TopicSubscriptionViewMBean)
                  broker.getManagementContext().newProxyInstance(name, TopicSubscriptionViewMBean.class, true);
                assertNotNull(sub);
                assertTrue(sub.getSessionId() != -1);
                // Check that its the default value then configure something new.
                assertTrue(sub.getMaximumPendingQueueSize() == -1);
                sub.setMaximumPendingQueueSize(1000);
                assertTrue(sub.getMaximumPendingQueueSize() != -1);
                fail = false;
        }
      }

      if (fail) {
View Full Code Here

TOP

Related Classes of org.apache.activemq.broker.jmx.TopicSubscriptionViewMBean

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.