Table 3–13 shows the possible
values for the State and StateLabel attributes. These values are defined
as static constants in the utility class ServiceState.

Table 3–13 Connection Service State
Values

Value

Utility Constant

String Representation

Meaning

0

ServiceState.RUNNING

RUNNING

Service running

1

ServiceState.PAUSED

PAUSED

Service paused

2

ServiceState.QUIESCED

QUIESCED

Service quiesced

-1

ServiceState.UNKNOWN

UNKNOWN

Service state unknown

Operations

The service monitor MBean supports the operations shown in Table 3–14. The names of these operations
are defined as static constants in the utility class ServiceOperations.

Table 3–14 Service Monitor Operations

Name

Parameters

Result Type

Description

getConnections

None

ObjectName[]

Object names of connection monitor MBeans for all current connections

getProducerIDs

None

String[]

Producer identifiers of all current message producers

getConsumerIDs

None

String[]

Consumer identifiers of all current message consumers

Notifications

The service monitor MBean supports the notifications shown in Table 3–15. These notifications are instances
of the Message Queue JMX classes ServiceNotification and ConnectionNotification, and their names
are defined as static constants in those classes.

Table 3–15 Service Monitor Notifications

Name

Utility Constant

Description

mq.service.pause

ServiceNotification.SERVICE_PAUSE

Service paused

mq.service.resume

ServiceNotification.SERVICE_RESUME

Service resumed

mq.connection.open

ConnectionNotification.CONNECTION_OPEN

Connection opened

mq.connection.reject

ConnectionNotification.CONNECTION_REJECT

Connection rejected

mq.connection.close

ConnectionNotification.CONNECTION_CLOSE

Connection closed

Table 3–16 shows the method
defined in class ServiceNotification for obtaining details
about a service monitor notification. See Table 3–31 for the corresponding methods of class ConnectionNotification.