Package oracle.tmm.jta.nonxa
Interface NonXAResource
public interface NonXAResource
The NonXAResource interface is a Java mapping of the Logging Last Resource(LLR)
which is not a xa resource and need to participate in the XA transaction
The NonXAResource interface defines the contract between a NonXA Resource Manager and a Transaction Manager in a distributed transaction processing (DTP) environment. NonXA participant needs to implement this interface for participating in the global transaction.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Informs the Non XA resource manager to commit the local transaction changesboolean
isSameRM
(NonXAResource nxares) This method is called to determine if the Non XA resource manager instance represented by the target object is the same as the Non XA resouce manager instance represented by the parameter nxares.List<byte[]>
recover()
Obtains a list of commit records persisted by the NonXaResource managervoid
Informs the Non XA resource manager to roll back the local transaction
-
Method Details
-
begin
- Throws:
NonXAException
-
commit
Informs the Non XA resource manager to commit the local transaction changes- Parameters:
xid
- A global transaction identifiercommitRecord
- Transaction commit record to be persisted at the Non XA resource end. It needs to be retuened as part fo recovery call- Throws:
NonXAException
- An error has occurred.
-
rollback
Informs the Non XA resource manager to roll back the local transaction- Parameters:
xid
- A global transaction identifier.- Throws:
NonXAException
- An error has occurred.
-
recover
Obtains a list of commit records persisted by the NonXaResource manager- Returns:
- The resource manager returns zero or more commit records that are persisted after succesful commit of the LLR transactions
- Throws:
NonXAException
- An error has occurred.
-
isSameRM
This method is called to determine if the Non XA resource manager instance represented by the target object is the same as the Non XA resouce manager instance represented by the parameter nxares.- Parameters:
nxares
- An NonXAResource object whose resource manager instance is to be compared with the resource manager instance of the target object.- Returns:
- true if it's the same RM instance; otherwise false.
- Throws:
NonXAException
- An error has occurred.
-