Using Management Via Core API
30.3. Using Management Via Core API The core management API in HornetQ is called by sending Core messages to a special address, the management address. Management messages are regular Core messages with well-known properties that the server needs to understand to interact with the management API: The name of the managed resource The name of the management operation The parameters of the management operation When such a management message is sent to the management address, HornetQ server will handle it, extract the information, invoke the operation on the managed resources and send a management reply to the management message's reply-to address (specified by ClientMessageImpl.REPLYTO_HEADER_NAME). A ClientConsumer can be used to consume the management reply and retrieve the result of the operation (if any) stored in the reply's body. For portability, results are returned as a JSON String rather than Java Serialization (the org.hornetq.api.core.management.ManagementHelper can be used to convert the JSON string to Java objects).