Sun GlassFish Message Queue 4.4 Developer's Guide for JMX Clients

Transaction Manager Configuration

Each broker has a single transaction manager configuration MBean, used for configuring all of the broker's transactions.

Object Name

The transaction manager configuration MBean has the following object name:

com.sun.messaging.jms.server:type=TransactionManager,subtype=Config

A string representing this object name is defined as a static constant TRANSACTION_MANAGER_CONFIG_MBEAN_NAME in the utility class MQObjectName.

Attribute

The transaction manager configuration MBean has the attribute shown in Table 3–66. The name of this attribute is defined as a static constant in the utility class TransactionAttributes.

Table 3–66 Transaction Manager Configuration Attribute

Name 

Type 

Settable? 

Description 

NumTransactions

Integer

No 

Current number of open transactions 

Operations

The transaction manager configuration MBean supports the operations shown in Table 3–67. The names of these operations are defined as static constants in the utility class TransactionOperations.

Table 3–67 Transaction Manager Configuration Operations

Name 

Parameters 

Result Type 

Description 

getTransactionIDs

None 

String[]

Transaction identifiers of all current open transactions

commit

transactionID (String)

None 

Commit transaction 

The desired transaction is designated by its transaction identifier (transactionID).

rollback

transactionID (String)

None 

Roll back transaction 

The desired transaction is designated by its transaction identifier (transactionID).