|
Novell exteNd Messaging Platform 5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object that represents a transaction that has not completed and that requires recovery. This is part of the manual recovery process. TransactionManager returns an array of such objects as part of manualRecovery call.
TransactionService jts; jts = (TransactionService) orb.resolve_initial_references("TransactionService"); jts.recover(myResourceMapper, false, null); Enumeration e; transarr = jts.getRecoveryTransactions(); while (e.hasMoreElements()) { RecoveryTransaction tx = (RecoveryTransaction)e.nextElement(); ... }
TransactionService
Field Summary | |
static int |
STATE_PREPARED
All resoruces have prepared to commit. |
static int |
STATE_PREPARED_REMOTE
All resoruces have prepared to commit, waiting for remote coordinator to complete. |
static int |
STATE_ROLLBACK_ONLY
Transaction can only be rolled back. |
Method Summary | |
Throwable |
getRecoverException()
Returns any Exception encountered during recovery. |
int |
getState()
State of the transaction. |
XAResource[] |
getXAResources()
The list of XAResources associated with the transaction |
Xid |
getXid()
Transaction Xid. |
boolean |
recover()
Complete the transaction. |
void |
release()
Release the transaction to TM for recovery. |
void |
remove()
Remove the transaction from recovery logs. |
Field Detail |
public static final int STATE_PREPARED
public static final int STATE_ROLLBACK_ONLY
public static final int STATE_PREPARED_REMOTE
Method Detail |
public int getState()
public Xid getXid()
public XAResource[] getXAResources()
public boolean recover()
public Throwable getRecoverException()
public void remove()
public void release()
|
Novell exteNd Messaging Platform 5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |