Sun Java System Message Queue 4.3 Developer's Guide for JMX Clients

Connection Monitor

The connection monitor MBean is used for monitoring a connection. There is one such MBean for each connection.

Object Name

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.

Attributes

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 

ConnectionID

String

No 

Connection identifier

Host

String

No 

Host from which connection was made 

Port

Integer

No 

Port number 

ServiceName

String

No 

Connection service name 

User

String

No 

User name 

ClientID

String

No 

Client identifier 

ClientPlatform

String

No 

String describing client platform 

NumProducers

Integer

No 

Current number of associated message producers 

NumConsumers

Integer

No 

Current number of associated message consumers 

Operations

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 

getService

None 

ObjectName

Object name of service monitor MBean for associated connection service 

getTemporaryDestinations

None 

ObjectName[]

Object names of destination monitor MBeans for all associated temporary destinations 

getProducerIDs

None 

String[]

Producer identifiers of all associated message producers

getConsumerIDs

None 

String[]

Consumer identifiers of all associated message consumers