|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.transaction.impl.jotm.TransactionServiceJotmImpl
public class TransactionServiceJotmImpl
Created by The eXo Platform SAS.
JOTM based implementation of
TransactionService
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
TransactionServiceJotmImpl(InitialContextInitializer initializer,
InitParams params)
|
|
| Method Summary | |
|---|---|
javax.transaction.xa.Xid |
createXid()
creates unique XA transaction identifier |
void |
delistResource(ExoResource exores)
delists XA resource from transaction manager |
void |
enlistResource(ExoResource exores)
enlists XA resource in transaction manager |
int |
getDefaultTimeout()
|
javax.transaction.TransactionManager |
getTransactionManager()
|
javax.transaction.UserTransaction |
getUserTransaction()
|
java.util.List |
popThreadLocalRMEventList()
Pop the current set from the stack of thread local resource event sets The list contains ResourceManagerEvent objects. |
void |
pushThreadLocalRMEventList(java.util.List eventList)
Push a new event list on the stack of thread local resource event sets. |
void |
setTransactionTimeout(int seconds)
sets timeout in seconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public TransactionServiceJotmImpl(InitialContextInitializer initializer,
InitParams params)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public javax.transaction.TransactionManager getTransactionManager()
getTransactionManager in interface TransactionServicepublic javax.transaction.UserTransaction getUserTransaction()
getUserTransaction in interface TransactionService
public void enlistResource(ExoResource exores)
throws javax.transaction.RollbackException,
javax.transaction.SystemException
TransactionService
enlistResource in interface TransactionServiceexores - XAResource
javax.transaction.RollbackException
javax.transaction.SystemException
public void delistResource(ExoResource exores)
throws javax.transaction.RollbackException,
javax.transaction.SystemException
TransactionService
delistResource in interface TransactionServiceexores - XAResource
javax.transaction.RollbackException
javax.transaction.SystemExceptionpublic javax.transaction.xa.Xid createXid()
TransactionService
createXid in interface TransactionServicepublic int getDefaultTimeout()
getDefaultTimeout in interface TransactionService
public void setTransactionTimeout(int seconds)
throws javax.transaction.SystemException
TransactionService
setTransactionTimeout in interface TransactionServicejavax.transaction.SystemExceptionpublic void pushThreadLocalRMEventList(java.util.List eventList)
ResourceManagerEvent objects.
eventList - the possibly null list of events to store forecoming
ResourceManagerEvent events occuring in the current
thread.public java.util.List popThreadLocalRMEventList()
ResourceManagerEvent objects.
ResourceManagerEvent list of events
that have occured in the current thread since the last call of
pushThreadLocalRMEventList or since the thread
started.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||