org.mortbay.jetty.plus
public class JotmService extends TMService
Field Summary | |
---|---|
static String | DEFAULT_SERVICE_NAME |
protected Map | m_mpDataSources
Global data sources specified in server.xml |
protected TMService | m_tm
Instance of JOTM transaction manager. |
Constructor Summary | |
---|---|
JotmService() |
Method Summary | |
---|---|
void | addDataSource(String dsJNDIName, StandardXADataSource xaDataSource, StandardXAPoolDataSource xaPool)
Add a datasource and a pool for it to the Transaction Mgr
|
void | addDataSource(String dsJNDIName, StandardXADataSource xaDataSource)
Add a DataSource that does not have an associated pool.
|
TransactionManager | getTransactionManager()
returns a TransactionManager object.
|
UserTransaction | getUserTransaction()
Returns an UserTransaction object.
|
void | start() Start the LifeCycle. |
void | stop() Stop the LifeCycle.
|
Parameters: jndiName client lookup jndi of DataSource xaDataSource the DataSource xaPool the Pool
Throws: SQLException if an error occurs NamingException if an error occurs
Parameters: dsJNDIName a String
value xaDataSource a StandardXADataSource
value
TransactionManager
object.
Returns: TransactionManager
UserTransaction
object.
Returns: UserTransaction
Throws: Exception An arbitrary exception may be thrown.
Throws: InterruptedException Stopping a lifecycle is rarely atomic and may be interrupted by another thread. If this happens InterruptedException is throw and the component will be in an indeterminant state and should probably be discarded.