|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.jetty.plus.AbstractService | +--org.mortbay.jetty.plus.TMService | +--org.mortbay.jetty.plus.JotmService
Implementation of TMService for Objectweb JOTM (www.objectweb.org)
Field Summary | |
static java.lang.String |
DEFAULT_SERVICE_NAME
|
Fields inherited from class org.mortbay.jetty.plus.TMService |
DEFAULT_USER_TX_JNDI |
Constructor Summary | |
JotmService()
|
Method Summary | |
void |
addDataSource(java.lang.String dsJNDIName,
StandardXADataSource xaDataSource)
Add a DataSource that does not have an associated pool. |
void |
addDataSource(java.lang.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. |
Methods inherited from class org.mortbay.jetty.plus.TMService |
getTransactionManagerJNDI |
Methods inherited from class org.mortbay.jetty.plus.AbstractService |
getJNDI, getName, isStarted, setJNDI, setName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_SERVICE_NAME
Constructor Detail |
public JotmService()
Method Detail |
public TransactionManager getTransactionManager()
TransactionManager
object.
getTransactionManager
in class TMService
public UserTransaction getUserTransaction()
UserTransaction
object.
getUserTransaction
in class TMService
public void start() throws java.lang.Exception
start
in interface Service
start
in class AbstractService
java.lang.Exception
- An arbitrary exception may be thrown.public void stop() throws java.lang.InterruptedException
stop
in interface Service
stop
in class AbstractService
java.lang.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.public void addDataSource(java.lang.String dsJNDIName, StandardXADataSource xaDataSource, StandardXAPoolDataSource xaPool) throws java.sql.SQLException, javax.naming.NamingException
xaDataSource
- the DataSourcexaPool
- the Pool
java.sql.SQLException
- if an error occurs
javax.naming.NamingException
- if an error occurspublic void addDataSource(java.lang.String dsJNDIName, StandardXADataSource xaDataSource)
dsJNDIName
- a String
valuexaDataSource
- a StandardXADataSource
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |