start
method and disassociated from the resource via the end
method. The resource adapter internally maintains an association between the resource connection object and the XAResource
object. At any given time, a connection is associated with zero or one transaction. JTA does not support nestedtransactions, so attempting to invoke the start
method on a thread that is already associated with a transaction is an error.
start
and end
are invoked properly for each transaction context switch. Each time the resource is used with a different transaction, the method end
must be invoked for the previous transaction that was associated with the resource, and method start
must be invoked for the current transaction context.