Each broker has a single producer manager monitor MBean, used for monitoring all of the broker's message producers.
The producer manager monitor MBean has the following object name:
com.sun.messaging.jms.server:type=ProducerManager,subtype=Monitor
A string representing this object name is defined as a static constant PRODUCER_MANAGER_MONITOR_MBEAN_NAME in the utility class MQObjectName.
The producer manager monitor MBean has the attribute shown in Table 3–55. The name of this attribute is defined as a static constant in the utility class ProducerAttributes.
Table 3–55 Producer Manager Monitor Attribute
Name |
Type |
Settable? |
Description |
---|---|---|---|
Integer |
No |
Current total number of message producers |
|
Integer |
No |
Number of wildcard message producers associated with the broker |
The producer manager monitor MBean supports the operations shown in Table 3–56. The names of these operations are defined as static constants in the utility class ProducerOperations.
Table 3–56 Producer Manager Monitor Operations
Name |
Parameters |
Result Type |
Description |
---|---|---|---|
None |
String[] | ||
producerID (String) |
CompositeData |
Descriptive information about message producer The desired producer is designated by its producer identifier (producerID). The value returned is a JMX CompositeData object describing the producer; see Table 3–57 for lookup keys used with this object. |
|
None |
CompositeData[] |
Descriptive information about all current message producers The value returned is an array of JMX CompositeData objects describing the producers; see Table 3–57 for lookup keys used with these objects. |
|
none |
String[] |
Wildcard strings used by current producers associated with the broker |
|
wildcard-String |
Integer |
Number of current producers associated with the broker that are using the specified wildcard string |
The getProducerInfoByID and getProducerInfo operations return objects implementing the JMX interface CompositeData, which maps lookup keys to associated data values. The keys shown in Table 3–57 are defined as static constants in the utility class ProducerInfo for use with these objects.
Table 3–57 Lookup Keys for Message Producer Information
Name |
Value Type |
Description |
---|---|---|
String | ||
String |
Name of associated connection service |
|
ConnectionID |
String | |
String |
Connection's host name |
|
String |
Connection's user name |
|
String |
Name of associated destination |
|
String[] |
Destination names that match wildcards used by wildcard producers For topic destinations only. |
|
Boolean |
Wildcard producer? For topic destinations only. |
|
String |
Type of associated destination See Table 3–58 for possible values. |
|
Boolean |
Message delivery paused? |
|
Long |
Number of messages sent |
Table 3–58 shows the possible values returned for the lookup key DestinationType. These values are defined as static constants in the utility class DestinationType.
Table 3–58 Message Producer Destination Types
Value |
Utility Constant |
Meaning |
---|---|---|
Queue (point-to-point) destination |
||
Topic (publish/subscribe) destination |