org.mortbay.jetty.plus
Class TMService

java.lang.Object
  extended by org.mortbay.jetty.plus.AbstractService
      extended by org.mortbay.jetty.plus.TMService
All Implemented Interfaces:
Service, LifeCycle
Direct Known Subclasses:
JotmService

public abstract class TMService
extends AbstractService

A TMService represents a JTA Service and is used to acces JTA main interfaces (UserTransaction and TransactionManager).

Author:
mhalas

Field Summary
protected  java.lang.String _transactionManagerJNDI
          Value for the TransactionManager JNDI binding.
static java.lang.String DEFAULT_USER_TX_JNDI
          Default value for UserTransaction JNDI binding.
 
Fields inherited from class org.mortbay.jetty.plus.AbstractService
_jndi, _name, _started
 
Constructor Summary
TMService()
           
 
Method Summary
abstract  TransactionManager getTransactionManager()
          returns a TransactionManager object.
 java.lang.String getTransactionManagerJNDI()
           
abstract  UserTransaction getUserTransaction()
          Returns an UserTransaction object.
 
Methods inherited from class org.mortbay.jetty.plus.AbstractService
getJNDI, getName, isStarted, setJNDI, setName, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_USER_TX_JNDI

public static final java.lang.String DEFAULT_USER_TX_JNDI
Default value for UserTransaction JNDI binding. User can change this by calling setJNDI()

See Also:
Constant Field Values

_transactionManagerJNDI

protected java.lang.String _transactionManagerJNDI
Value for the TransactionManager JNDI binding. This is not changeable at runtime because other services need to know how to look it up.

Constructor Detail

TMService

public TMService()
Method Detail

getTransactionManager

public abstract TransactionManager getTransactionManager()
returns a TransactionManager object.

Returns:
TransactionManager

getUserTransaction

public abstract UserTransaction getUserTransaction()
Returns an UserTransaction object.

Returns:
UserTransaction

getTransactionManagerJNDI

public java.lang.String getTransactionManagerJNDI()


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.