Skip Navigation Links | |
Exit Print View | |
Oracle GlassFish Server Message Queue 4.5 Developer's Guide for JMX Clients |
1. Introduction to JMX Programming for Message Queue Clients
3. Message Queue MBean Reference
Connection Manager Configuration
Destination Manager Configuration
Producer Manager Configuration
This section describes the MBeans used for managing message consumers:
The consumer manager configuration MBean configures message consumers.
The consumer manager monitor MBean monitors message consumers.
The following subsections describe each of these MBeans in detail.
Note - Notice that there are no resource MBeans associated with individual message consumers; rather, all consumers are managed through the broker's global consumer manager configuration and consumer manager monitor MBeans.
Each broker has a single consumer manager configuration MBean, used for configuring all of the broker's message consumers.
The consumer manager configuration MBean has the following object name:
com.sun.messaging.jms.server:type=ConsumerManager,subtype=Config
A string representing this object name is defined as a static constant CONSUMER_MANAGER_CONFIG_MBEAN_NAME in the utility class MQObjectName.
The consumer manager configuration MBean has the attribute shown in Table 3-59. The name of this attribute is defined as a static constant in the utility class ConsumerAttributes.
Table 3-59 Consumer Manager Configuration Attribute
|
The consumer manager configuration MBean supports the operations shown in Table 3-60. The names of these operations are defined as static constants in the utility class ConsumerOperations.
Table 3-60 Consumer Manager Configuration Operations
|
1Durable topic subscribers only
Each broker has a single consumer manager monitor MBean, used for monitoring all of the broker's message consumers.
The consumer manager monitor MBean has the following object name:
com.sun.messaging.jms.server:type=ConsumerManager,subtype=Monitor
A string representing this object name is defined as a static constant CONSUMER_MANAGER_MONITOR_MBEAN_NAME in the utility class MQObjectName.
The consumer manager monitor MBean has the attribute shown in Table 3-61. The name of this attribute is defined as a static constant in the utility class ConsumerAttributes.
Table 3-61 Consumer Manager Monitor Attribute
|
The consumer manager monitor MBean supports the operations shown in Table 3-62. The names of these operations are defined as static constants in the utility class ConsumerOperations.
Table 3-62 Consumer Manager Monitor Operations
|
The getConsumerInfoByID and getConsumerInfo operations return objects implementing the JMX interface CompositeData, which maps lookup keys to associated data values. The keys shown in Table 3-63 are defined as static constants in the utility class ConsumerInfo for use with these objects.
Table 3-63 Lookup Keys for Message Consumer Information
|
1Durable topic subscribers only
Table 3-64 shows the possible values returned for the lookup key DestinationType. These values are defined as static constants in the utility class DestinationType.
Table 3-64 Message Consumer Destination Types
|
Table 3-65 shows the possible values returned for the lookup keys AcknowledgeMode and AcknowledgeModeLabel. Four of these values are defined as static constants in the standard JMS interface javax.jms.Session; the fifth (NO_ACKNOWLEDGE) is defined in the extended Message Queue version of the interface, com.sun.messaging.jms.Session.
Table 3-65 Acknowledgment Modes
|