2.9. Applications that use management APIs

JBoss Messaging exposes its management API through MBean interfaces. HornetQ includes a number of different management APIs (see Chapter 28, Management for details).
While JBoss Messaging management APIs are accessed via JMX, HornetQ provides access to its management APIs through:
JMX
JMX is the standard method of managing Java applications.
Core API
Management operations are sent to the HornetQ server using Core messages.
JMS API
Management operations are sent to the HornetQ server using JMS messages
The same functionality can be achieved through all three management methods.
The following table lists the JBoss Messaging management Objects alongside their HornetQ JMX counterparts. For the other management APIs available in HornetQ, see Chapter 28, Management.

Table 2.7. JBoss Messaging and HornetQ Management Object API Mappings

org.jboss.jms.server. Class org.hornetq.api.jms.management. Class
ServerPeer JMSServerControl
connectionfactory.ConnectionFactory ConnectionFactoryControl
destination.QueueService JMSQueueControl
destination.TopicService TopicControl

Note

Some JBoss Messaging MBeans have no equivalent in HornetQ; for example, there is no HornetQ equivalent for JDBCPersistenceManagerService because HornetQ does not require a datasource as JBoss Messaging does.