|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.component.jotm.JOTMComponent
public class JOTMComponent
Creates and binds the transaction factory and usertransaction object.
Field Summary | |
---|---|
private static int |
DEFAULT_TIMEOUT
Default Transaction timeout. |
private static JLog |
logger
Logger. |
private int |
timeout
Transaction timeout (in seconds). |
private javax.transaction.TransactionManager |
transactionManager
Transaction manager reference. |
Fields inherited from interface org.objectweb.easybeans.component.itf.TMComponent |
---|
JNDI_NAME |
Constructor Summary | |
---|---|
JOTMComponent()
|
Method Summary | |
---|---|
javax.transaction.TransactionManager |
getTransactionManager()
Gets the transaction manager object. |
void |
init()
Init method. This method is called before the start method. |
void |
setTimeout(int timeout)
Set the Transaction Timeout. |
void |
start()
Start method. This method is called after the init method. |
void |
stop()
Stop method. This method is called when component needs to be stopped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int DEFAULT_TIMEOUT
private static JLog logger
private javax.transaction.TransactionManager transactionManager
private int timeout
Constructor Detail |
---|
public JOTMComponent()
Method Detail |
---|
public void init() throws EZBComponentException
init
in interface EZBComponent
EZBComponentException
- if the initialization has failed.public void start() throws EZBComponentException
start
in interface EZBComponent
EZBComponentException
- if the start has failed.public void stop() throws EZBComponentException
stop
in interface EZBComponent
EZBComponentException
- if the stop is failing.public javax.transaction.TransactionManager getTransactionManager()
getTransactionManager
in interface TMComponent
public void setTimeout(int timeout)
setTimeout
in interface TMComponent
timeout
- Timeout (in seconds)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |