The connection monitor MBean is used for monitoring a connection. There is one such MBean for each connection.
The connection monitor MBean has an object name of the following form:
com.sun.messaging.jms.server:type=Connection,subtype=Monitor,id=connectionID
where connectionID is the connection identifier. For example:
com.sun.messaging.jms.server:type=Connection,subtype=Monitor,id=7853717387765338368
The utility class MQObjectName provides a static method, createConnectionMonitor, for constructing object names of this form.
The connection monitor MBean has the attributes shown in Table 3–24. The names of these attributes are defined as static constants in the utility class ConnectionAttributes.
Table 3–24 Connection Monitor Attributes
Name |
Type |
Settable? |
Description |
---|---|---|---|
String |
No | ||
String |
No |
Host from which connection was made |
|
Integer |
No |
Port number |
|
String |
No |
Connection service name |
|
String |
No |
User name |
|
String |
No |
Client identifier |
|
String |
No |
String describing client platform |
|
Integer |
No |
Current number of associated message producers |
|
Integer |
No |
Current number of associated message consumers |
The connection monitor MBean supports the operations shown in Table 3–25. The names of these operations are defined as static constants in the utility class ConnectionOperations.
Table 3–25 Connection Monitor Operations
Name |
Parameters |
Result Type |
Description |
---|---|---|---|
None |
ObjectName |
Object name of service monitor MBean for associated connection service |
|
None |
ObjectName[] |
Object names of destination monitor MBeans for all associated temporary destinations |
|
None |
String[] | ||
None |
String[] |