Initially the topicAdmin handled only for Embedded ActiveMQ. Modified the code to handle the External ActiveMQ as well. The code added to check whether the provider plug-in is external or embedded, based on that invoking the MBeanServer to get BrokerViewMBean to get the DurableSubscriptionViewMBean for finding the durable subscribers. Now this topicAdmin works for both Embedded and External ActiveMQ based on the plug-in configured.