Each individual MBean is designated by an object name belonging to the JMX class ObjectName, which encapsulates a string identifying the MBean. For Message Queue MBeans, the encapsulated name string has the following syntax:
com.sun.messaging.jms.server:property=value[,property=value]*
Table 1–1 shows the possible properties.
Table 1–1 Object Name Properties
Property |
Description |
Values |
---|---|---|
MBean type |
See Table 1–2. |
|
MBean subtype |
See Table 1–3. |
|
Destination type Applies only to MBeans of the following types:
|
See Table 1–4. |
|
Resource name Applies only to MBeans of the following types:
|
For service configuration and service monitor MBeans, see Table 1–5. For destination configuration and destination monitor MBeans, the destination name. Examples: myTopic temporary_destination://queue/129.145.180.99/63008/1 |
|
Resource identifier Applies only to MBeans of the following types:
|
Example: 7853717387765338368 |
Table 1–2 shows the possible values for the object name's type property.
Table 1–2 Message Queue MBean Types
Value |
Description |
---|---|
Broker resource MBean |
|
Connection service resource MBean |
|
Connection service manager MBean |
|
Connection resource MBean |
|
Connection manager MBean |
|
Destination resource MBean |
|
Destination manager MBean |
|
Message producer manager MBean |
|
Message consumer manager MBean |
|
Transaction manager MBean |
|
Broker cluster resource MBean |
|
Logging resource MBean |
|
JVM resource MBean |
Table 1–3 shows the possible values for the object name's subtype property.
Table 1–3 Message Queue MBean Subtypes
Value |
Description |
---|---|
Configuration MBean |
|
Monitor MBean |
For destination configuration and destination monitor MBeans, the object name's desttype property specifies whether the destination is a point-to-point queue or a publish/subscribe topic. Table 1–4 shows the possible values, which are defined for convenience as static constants in the utility class DestinationType.
Table 1–4 Destination Types
Value |
Utility Constant |
Meaning |
---|---|---|
Queue (point-to-point) destination |
||
Topic (publish/subscribe) destination |
For service configuration and service monitor MBeans, the object name's name property identifies the connection service with which the MBean is associated. Table 1–5 shows the possible values.
Table 1–5 Connection Service Names
Service Name |
Service Type | |
---|---|---|
Normal | ||
Normal | ||
Normal | ||
Normal | ||
Admin | ||
Admin |
Table 1–6 shows some example object names.
Table 1–6 Example Object Names
MBean type |
Object Name |
---|---|
Broker configuration |
com.sun.messaging.jms.server:type=Broker,subtype=Config |
Service manager monitor |
com.sun.messaging.jms.server:type=ServiceManager,subtype=Monitor |
Connection configuration |
com.sun.messaging.jms.server:type=Connection,subtype=Config,id=7853717387765338368 |
Destination monitor |
com.sun.messaging.jms.server:type=Destination,subtype=Monitor,desttype=t,name="MyQueue" |
The object names for each type of Message Queue MBean are given in the relevant sections of Chapter 3, Message Queue MBean Reference. All such names are either defined as static constants or returned by static methods in the utility class MQObjectName (see Table 1–7). For instance, the constant
MQObjectName.BROKER_CONFIG_MBEAN_NAME
is defined as a string representing the object name for a broker configuration MBean, and the method call
MQObjectName.createDestinationMonitor(DestinationType.TOPIC, "MyQueue");
returns the destination monitor MBean object name shown in Table 1–6. Note that, whereas methods such as createDestinationMonitor return an actual object name (that is, an object of class ObjectName) that can be assigned directly to a variable of that type
ObjectName destMonitorName = MQObjectName.createDestinationMonitor(DestinationType.TOPIC, "Dest");
constants like BROKER_CONFIG_MBEAN_NAME instead represent an ordinary string (class String) that must then be converted into the corresponding object name itself:
ObjectName brokerConfigName = new ObjectName(MQObjectName.BROKER_CONFIG_MBEAN_NAME);Table 1–7 Utility Constants and Methods for Object Names
MBean Type |
Utility Constant or Method |
---|---|
Broker configuration | |
Broker monitor | |
Service configuration | |
Service monitor | |
Service manager configuration | |
Service manager monitor | |
Connection configuration | |
Connection monitor | |
Connection manager configuration | |
Connection manager monitor | |
Destination configuration | |
Destination monitor | |
Destination manager configuration | |
Destination manager monitor |
MQObjectName.DESTINATION_MANAGER_MONITOR_MBEAN_NAME |
Producer manager configuration |
MQObjectName.PRODUCER_MANAGER_CONFIG_MBEAN_NAME |
Producer manager monitor |
MQObjectName.PRODUCER_MANAGER_MONITOR_MBEAN_NAME |
Consumer manager configuration | |
Consumer manager monitor | |
Transaction manager configuration | |
Transaction manager monitor | |
Cluster configuration | |
Cluster monitor | |
Log configuration | |
Log monitor | |
JVM monitor |