Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jta-dev] What is the specified behavior of enlistResource when called with the same payload twice?

Suppose I have an XAResource x1.

What must happen given this program fragment (with assertions enabled and assuming a transaction in a "good state", i.e. not a weird edge case or anything):

assert activeTransaction.enlistResource(x1);
assert activeTransaction.enlistResource(x1);

Specifically: must the second assertion succeed or fail?


Back to the top