public class XACapableAdapter extends java.lang.Object implements XACapable
XACapableAdapter is an adapter that implements
XACapable for a given Messenger
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
log
Logger
|
private Messenger |
messenger |
| Constructor and Description |
|---|
XACapableAdapter(Messenger messenger) |
| Modifier and Type | Method and Description |
|---|---|
void |
delistResources(javax.transaction.Transaction transaction,
int flag)
This method is called to delist any XA resources the given object
has previously enlisted to this XA transaction.
|
void |
enlistResources(javax.transaction.Transaction transaction)
This method is called to enlist any XA resources the given object
has to be part of the XA transaction.
|
protected javax.transaction.xa.XAResource |
getXAResource() |
private static final org.apache.commons.logging.Log log
private Messenger messenger
public XACapableAdapter(Messenger messenger)
public void enlistResources(javax.transaction.Transaction transaction)
throws java.lang.Exception
XACapableenlistResources in interface XACapabletransaction - the transaction to enlist tojava.lang.Exceptionpublic void delistResources(javax.transaction.Transaction transaction,
int flag)
throws java.lang.Exception
XACapabledelistResources in interface XACapabletransaction - the transaction to delist resources fromflag - is the flag used by JTA when delisting resources.
It is either XAResource.TMSUCCESS, XAResource.TMSUSPEND, or XAResource.TMFAILjava.lang.Exceptionprotected javax.transaction.xa.XAResource getXAResource()
throws java.lang.Exception
java.lang.Exception