Package org.jboss.tm

The default Transaction Manager implementation.

See:
          Description

Interface Summary
TransactionLocalDelegate The interface to implementated for a transaction local implementation
TransactionManagerServiceMBean MBean interface.
TransactionPropagationContextFactory Implementations of this interface are used for getting a transaction propagation context at the client-side.
TransactionPropagationContextImporter Implementations of this interface are used for importing a transaction propagation context into the transaction manager.
TransactionTimeoutConfiguration The interface to implementated by a transaction manager that supports retrieving the current threads transaction timeout
XAExceptionFormatter XAExceptionFormatter.java Created: Tue Jan 28 12:07:56 2003
XidFactoryMBean MBean interface.
 

Class Summary
GlobalId This object encapsulates the global transaction ID of a transaction.
TransactionLocal A TransactionLocal is similar to ThreadLocal except it is keyed on the Transactions.
TransactionLocalDelegateImpl An implementation of the transaction local implementation using Transaction synchronizations.
TransactionLocalDelegateImpl.TransactionLocalSynchronization  
TransactionManagerService This is a JMX service which manages the TransactionManager.
TransactionTimeout Created by IntelliJ IDEA.
TxManager Our TransactionManager implementation.
TxUtils TxUtils.java has utility methods for determining transaction status in various useful ways.
XidFactory XidFactory.java Created: Sat Jun 15 19:01:18 2002
XidImpl This object encapsulates the ID of a transaction.
 

Exception Summary
JBossRollbackException JBossRollbackException.java Created: Sun Feb 9 22:45:03 2003
TransactionTimeout.TransactionTimeoutException  
 

Package org.jboss.tm Description

The default Transaction Manager implementation.

Package Specification

The JBoss-specific Communication Resource Manager

A CRM is responsible for converting local transactions from/to a form that can be serialized so it can be passed over the wire to another Java VM.

The JTA specification does not define the CRM, so we have implemented our own.

The J2EE specification suggests that the CRM used is the OTS CosTSPortability CRM, but that depends heavily on CORBA, and JBoss is not dependent on any particular object request broker technology, so we do not use that.

The advantage of using our own CRM implementation instead of CosTSPortablilty is twofold:

Adapting an existing JTA implementation for JBoss

In JBoss everything is a MBean. Implementing your JTA implementation as an MBean makes it simpler to manage it in a standardized way.

Since your JTA implementation is a service you probably want to make your MBean implemementation extend from org.jboss.system.ServiceMBeanSupport.

When running in the server, your MBean should publish three objects in JNDI:

See the implementation of org.jboss.tm.TransactionManagerService for an example of such a MBean. Please note that the three names your MBean should publish in JNDI need not refer to the same object instance as the TransactionManagerService does.

Please note that the transaction propagation context (TPC) used by the CRM interfaces TransactionPropagationContextImporter and TransactionPropagationContextFactory is of type java.lang.Object. This allows for the widest range of possible TPC implementations. For your TPC to work with the JBoss JRMP transport, it should be Java-serializable at runtime.

Related Documentation

Package Status



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.