org.mortbay.jetty.plus
Class JotmService
- LifeCycle, Service
Implementation of TMService for Objectweb JOTM (www.objectweb.org)
static String | DEFAULT_SERVICE_NAME
|
protected Map | m_mpDataSources - Global data sources specified in server.xml
|
protected org.objectweb.transaction.jta.TMService | m_tm - Instance of JOTM transaction manager.
|
void | addDataSource(String dsJNDIName, StandardXADataSource xaDataSource) - Add a DataSource that does not have an associated pool.
|
void | addDataSource(String dsJNDIName, StandardXADataSource xaDataSource, StandardXAPoolDataSource xaPool) - Add a datasource and a pool for it to the Transaction Mgr
|
TransactionManager | getTransactionManager() - returns a
TransactionManager object.
|
UserTransaction | getUserTransaction() - Returns an
UserTransaction object.
|
void | start() - Start the LifeCycle.
|
void | stop() - Stop the LifeCycle.
|
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
m_mpDataSources
protected Map m_mpDataSources
Global data sources specified in server.xml
m_tm
protected org.objectweb.transaction.jta.TMService m_tm
Instance of JOTM transaction manager.
JotmService
public JotmService()
addDataSource
public void addDataSource(String dsJNDIName,
StandardXADataSource xaDataSource)
Add a DataSource that does not have an associated pool.
You should only use this if the driver for the datasource does it's
own pooling.
dsJNDIName
- a String
valuexaDataSource
- a StandardXADataSource
value
addDataSource
public void addDataSource(String dsJNDIName,
StandardXADataSource xaDataSource,
StandardXAPoolDataSource xaPool)
throws SQLException,
NamingException
Add a datasource and a pool for it to the Transaction Mgr
xaDataSource
- the DataSourcexaPool
- the Pool
getTransactionManager
public TransactionManager getTransactionManager()
returns a TransactionManager
object.
- getTransactionManager in interface TMService
getUserTransaction
public UserTransaction getUserTransaction()
Returns an UserTransaction
object.
- getUserTransaction in interface TMService
stop
public void stop()
throws InterruptedException
Stop the LifeCycle.
The LifeCycle may wait for current activities to complete
normally, but it can be interrupted.
- stop in interface Service
- stop in interface LifeCycle
- stop in interface AbstractService
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.