- 
        1. Re: How to obtain JMSServerControl objectjbertram Jul 29, 2015 3:17 PM (in response to splitframe)The JMSServerControl is an MBean and it cannot be injected. You should ensure that JMX management is enabled on the HornetQ instance (e.g. <jmx-management-enabled>true</jmx-management-enabled>) and then you can look up the MBean from the platform's MBean server. HornetQ ships with an example demonstrating how to do this from a remote client. The example is named "jmx" and it's available in the HornetQ distribution. You could also use programmatic access to the Wildfly management interface and create topics that way. 
- 
        2. Re: How to obtain JMSServerControl objectsplitframe Jul 30, 2015 7:37 AM (in response to jbertram)Hello Justin, thank you for your help. I now do it like this: MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); ObjectName oName = new ObjectName("org.hornetq:module=JMS,type=Server"); JMSServerControl serverControl = MBeanServerInvocationHandler.newProxyInstance(mBeanServer, oName, JMSServerControl.class, false); Maybe it will help someone else aswell. 
 
    