## org.jboss.tm
Class TransactionManagerService

    java.lang.Object
      |
      +--javax.management.NotificationBroadcasterSupport
            |
            +--org.jboss.util.ServiceMBeanSupport
                  |
                  +--org.jboss.tm.TransactionManagerService

All Implemented Interfaces:
  javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.naming.spi.ObjectFactory, Service, ServiceMBean, TransactionManagerServiceMBean

public class TransactionManagerService
extends ServiceMBeanSupport
implements TransactionManagerServiceMBean, javax.naming.spi.ObjectFactory

This is a JMX service which manages the TransactionManager. The service creates it and binds a Reference to it into JNDI.

Version:
  $Revision: 1.11.4.2 $
Author:
  Rickard Öberg (rickard.oberg@telkel.com), Ole Husgaard, Toby Allsopp (toby.allsopp@peace.com)
See Also:
  `TxManager`

Field Summary
`static java.lang.String` `JNDI_EXPORTER`
`static java.lang.String` `JNDI_IMPORTER`
`static java.lang.String` `JNDI_NAME`

Fields inherited from class org.jboss.util.ServiceMBeanSupport
`log, server`

Fields inherited from interface org.jboss.tm.TransactionManagerServiceMBean
`OBJECT_NAME`

Fields inherited from interface org.jboss.util.ServiceMBean
`STARTED, STARTING, states, STOPPED, STOPPING`

Constructor Summary
`TransactionManagerService()`

Method Summary
`java.lang.String` `getName()`
`long` `getNumSuspendedTransactions()`
`long` `getNumTransactions()`
`java.lang.Object` `getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)`
`protected javax.management.ObjectName` `getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)`
`int` `getTransactionTimeout()`
`java.lang.String` `getXidClassName()`
`void` `setTransactionTimeout(int timeout)`
`void` `setXidClassName(java.lang.String name)`
`protected void` `startService()`
`protected void` `stopService()`

Methods inherited from class org.jboss.util.ServiceMBeanSupport
`destroy, destroyService, getServer, getState, getStateString, init, initService, nextSequenceNumber, postDeregister, postRegister, preDeregister, preRegister, start, stop`

Methods inherited from class javax.management.NotificationBroadcasterSupport
`addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.jboss.util.ServiceMBean
`getState, getStateString`

Methods inherited from interface org.jboss.util.Service
`destroy, init, start, stop`

Field Detail

### JNDI_NAME

    public static java.lang.String JNDI_NAME

### JNDI_IMPORTER

    public static java.lang.String JNDI_IMPORTER

### JNDI_EXPORTER

    public static java.lang.String JNDI_EXPORTER

Constructor Detail

### TransactionManagerService

    public TransactionManagerService()

Method Detail

### getName

    public java.lang.String getName()

  Specified by:
    `getName` in interface `ServiceMBean`
  Overrides:
    `getName` in class `ServiceMBeanSupport`

### getObjectName

    protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                        javax.management.ObjectName name)
                                                 throws javax.management.MalformedObjectNameException

  Overrides:
    `getObjectName` in class `ServiceMBeanSupport`

### startService

    protected void startService()
                         throws java.lang.Exception

  Overrides:
    `startService` in class `ServiceMBeanSupport`

### stopService

    protected void stopService()

  Overrides:
    `stopService` in class `ServiceMBeanSupport`

### getTransactionTimeout

    public int getTransactionTimeout()

  Specified by:
    `getTransactionTimeout` in interface `TransactionManagerServiceMBean`

### setTransactionTimeout

    public void setTransactionTimeout(int timeout)

  Specified by:
    `setTransactionTimeout` in interface `TransactionManagerServiceMBean`

### getXidClassName

    public java.lang.String getXidClassName()

  Specified by:
    `getXidClassName` in interface `TransactionManagerServiceMBean`

### setXidClassName

    public void setXidClassName(java.lang.String name)

  Specified by:
    `setXidClassName` in interface `TransactionManagerServiceMBean`

### getNumTransactions

    public long getNumTransactions()

  Specified by:
    `getNumTransactions` in interface `TransactionManagerServiceMBean`

### getNumSuspendedTransactions

    public long getNumSuspendedTransactions()

  Specified by:
    `getNumSuspendedTransactions` in interface `TransactionManagerServiceMBean`

### getObjectInstance

    public java.lang.Object getObjectInstance(java.lang.Object obj,
                                              javax.naming.Name name,
                                              javax.naming.Context nameCtx,
                                              java.util.Hashtable environment)
                                       throws java.lang.Exception

  Specified by:
    `getObjectInstance` in interface `javax.naming.spi.ObjectFactory`

Copyright © 2000 The JBoss Organization. All Rights Reserved.