|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TMComponent
Defines the interface for a TM provider.
| Field Summary | |
|---|---|
static String |
JNDI_NAME
JNDI name of the transaction manager. |
| Method Summary | |
|---|---|
void |
begin(Xid xid)
Creates a new inflow transaction and associates it with the current thread. |
void |
begin(Xid xid,
long timeout)
Creates a new inflow transaction and associates it with the current thread. |
void |
clearThreadTx()
Clear transaction from this thread if not known. |
TransactionManager |
getTransactionManager()
Gets the transaction manager object. |
javax.resource.spi.XATerminator |
getXATerminator()
|
void |
setTimeout(int timeout)
Set the Transaction Timeout. |
| Methods inherited from interface org.ow2.easybeans.component.api.EZBComponent |
|---|
init, start, stop |
| Field Detail |
|---|
static final String JNDI_NAME
| Method Detail |
|---|
TransactionManager getTransactionManager()
void setTimeout(int timeout)
timeout - Timeout (in seconds)
javax.resource.spi.XATerminator getXATerminator()
throws XAException
XAException - if the terminator is not available
void begin(Xid xid)
throws NotSupportedException,
SystemException
xid - Xid of the inflow transaction.
NotSupportedException - Thrown if the thread is already associated
with a transaction. (nested transaction are not supported)
SystemException - Thrown if the transaction manager encounters an
unexpected error condition
void begin(Xid xid,
long timeout)
throws NotSupportedException,
SystemException
xid - Xid of the inflow transaction.timeout - value of the timeout (in seconds). If the value is less
than or equal to zero, the value will be set to the default value.
NotSupportedException - Thrown if the thread is already associated
with a transaction. (nested transaction are not supported)
SystemException - Thrown if the transaction manager encounters an
unexpected error conditionvoid clearThreadTx()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||