Skip to main content
Skip table of contents

JMX API

FioranoMQ exposes a lot of JMX APIs which the user can invoke at runtime to change the configuration and behavior of the MQ server in online mode. These APIs can be executed either from Fiorano Studio or from a Java program as shown in the samples provided under <FIORANO_HOME>/fmq/samples/JMX/

The sample code snippet below shows the basic steps for creating a JMX connection and invoking an operation.

CODE
JMXConnector connector = JMXConnectorFactory.newJMXConnector(address, environment);
MBeanServerConnection conn = connector.getMBeanServerConnection();
ObjectName mem = new ObjectName ("Fiorano.etc:ServiceType=AdminService,Name=AdminService");
Object returnValue = conn.invoke(mem, "printServerInfo", new Object[]{}, new String[]{});

Refer the following sections to know how to enable JMX notifications and the MBeans that can be exposed through JMX.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.