The transaction manager monitor MBean supports the operations shown in Table 3–69. The names of these operations are defined as static constants in the utility class TransactionOperations.
Table 3–69 Transaction Manager Monitor Operations
Name |
Parameters |
Result Type |
Description |
---|---|---|---|
None |
String[] | ||
transactionID (String) |
CompositeData |
Descriptive information about transaction The desired transaction is designated by its transaction identifier (transactionID). The value returned is a JMX CompositeData object describing the transaction; see Table 3–70 for lookup keys used with this object. |
|
None |
CompositeData[] |
Descriptive information about all current open transactions The value returned is an array of JMX CompositeData objects describing the transactions; see Table 3–70 for lookup keys used with these objects. |
The getTransactionInfoByID and getTransactionInfo operations return objects implementing the JMX interface CompositeData, which maps lookup keys to associated data values. The keys shown in Table 3–70 are defined as static constants in the utility class TransactionInfo for use with these objects.
Table 3–70 Lookup Keys for Transaction Information
Name |
Value Type |
Description |
---|---|---|
String | ||
String | ||
String |
User name |
|
String |
Client identifier |
|
String |
Connection string |
|
Long |
Time created, in standard Java format (milliseconds since January 1, 1970, 00:00:00 UTC) |
|
Integer |
Current state See Table 3–71 for possible values. |
|
String |
String representation of current state Useful for displaying the state in human-readable form, such as in the Java Monitoring and Management Console (jconsole). See Table 3–71 for possible values. |
|
Long |
Number of messages |
|
Long |
Number of acknowledgments |
Table 3–71 shows the possible values returned for the lookup keys State and StateLabel. These values are defined as static constants in the utility class TransactionState.
Table 3–71 Transaction State Values