public class XaTransaction extends AbstractTransaction
XaTransaction represents an XA transaction in Mule.| Modifier and Type | Class and Description |
|---|---|
static interface |
XaTransaction.MuleXaObject |
loggerSTATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN| Constructor and Description |
|---|
XaTransaction(TransactionManager txManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindResource(Object key,
Object resource) |
protected void |
closeResources() |
boolean |
delistResource(XAResource resource,
int tmflag) |
protected void |
delistResources() |
protected void |
doBegin()
Really begin the transaction.
|
protected void |
doCommit()
Commit the transaction on the underlying resource
|
protected void |
doRollback()
Rollback the transaction on the underlying resource
|
boolean |
enlistResource(XAResource resource) |
Object |
getResource(Object key) |
int |
getStatus() |
Transaction |
getTransaction() |
boolean |
hasResource(Object key) |
boolean |
isXA() |
void |
resume()
Resume the XA transaction
|
void |
setRollbackOnly() |
Transaction |
suspend()
Suspend the XA transaction
|
String |
toString() |
begin, commit, fireNotification, isBegun, isCommitted, isRollbackOnly, isRolledBack, rollbackpublic XaTransaction(TransactionManager txManager)
protected void doBegin()
throws TransactionException
AbstractTransactiondoBegin in class AbstractTransactionTransactionExceptionprotected void doCommit()
throws TransactionException
AbstractTransactiondoCommit in class AbstractTransactionTransactionExceptionprotected void doRollback()
throws TransactionRollbackException
AbstractTransactiondoRollback in class AbstractTransactionTransactionRollbackExceptionpublic int getStatus()
throws TransactionStatusException
TransactionStatusExceptionpublic void setRollbackOnly()
public boolean hasResource(Object key)
public void bindResource(Object key, Object resource) throws TransactionException
TransactionExceptionpublic boolean enlistResource(XAResource resource) throws TransactionException
TransactionExceptionpublic boolean delistResource(XAResource resource, int tmflag) throws TransactionException
TransactionExceptionpublic Transaction getTransaction()
public boolean isXA()
isXA in interface TransactionisXA in class AbstractTransactionpublic void resume()
throws TransactionException
Transactionresume in interface Transactionresume in class AbstractTransactionTransactionException - if any errorpublic Transaction suspend() throws TransactionException
Transactionsuspend in interface Transactionsuspend in class AbstractTransactionTransactionException - if any errorprotected void delistResources()
protected void closeResources()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.