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
Consumer Manager Configuration
This section describes the MBeans used for logging Message Queue operations:
The log configuration MBean configures Message Queue logging.
The log monitor MBean monitors Message Queue logging.
The following subsections describe each of these MBeans in detail.
Each broker has a single log configuration MBean, used for configuring Message Queue logging.
The log configuration MBean has the following object name:
com.sun.messaging.jms.server:type=Log,subtype=Config
A string representing this object name is defined as a static constant LOG_CONFIG_MBEAN_NAME in the utility class MQObjectName.
The log configuration MBean has the attributes shown in Table 3-85. The names of these attributes are defined as static constants in the utility class LogAttributes.
Table 3-85 Log Configuration Attributes
|
Table 3-86 shows the possible values for the Level attribute. Each level includes those above it (for example, WARNING includes ERROR). These values are defined as static constants in the utility class LogLevel.
Table 3-86 Log Configuration Logging Levels
|
The log configuration MBean supports the notification shown in Table 3-87.
Table 3-87 Log Configuration Notification
|
Each broker has a single log monitor MBean, used for monitoring Message Queue logging.
The log monitor MBean has the following object name:
com.sun.messaging.jms.server:type=Log,subtype=Monitor
A string representing this object name is defined as a static constant LOG_MONITOR_MBEAN_NAME in the utility class MQObjectName.
The log monitor MBean supports the notifications shown in Table 3-88. These notifications are instances of the Message Queue JMX class LogNotification, and their names are defined as static utility constants in that class.
Note - A notification listener registered for a particular logging level will receive notifications only for that level and not for those above or below it: for example, a listener registered for the notification mq.log.level.WARNING will be notified only of WARNING messages and not ERROR or INFO. To receive notifications for more than one logging level, the listener must be explicitly registered for each level separately.
Table 3-88 Log Monitor Notifications
|
Table 3-89 shows the methods defined in class LogNotification for obtaining details about a log monitor notification.
Table 3-89 Data Retrieval Methods for Log Monitor Notifications
|