Skip to main content

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

If the three exception types don't fit then the Narayana transaction manager uses false to indicate that we failed to enlist the resource. We either mark transaction rollback_only or we internally mark it as failed (which I think would be effectively the same as rollback_only but I'd need to check).

So the action you need to take is to evaluate the consequences of not being able to join with the transaction and react accordingly. In the general case the transaction will be marked rollback only.

On Mon, Nov 14, 2022 at 3:39 PM Laird Nelson <ljnelson@xxxxxxxxx> wrote:
On Mon, Nov 14, 2022 at 5:07 AM Tom Jenkinson <tom.jenkinson@xxxxxxxxxx> wrote:
In terms of the alternative, you said "all error conditions seem to be handled by exceptions" that would imply that any situation with failing to register the resource (the first time) can be considered an "unexpected error condition" but if unable to enlist the resource when XAResource.start is called (during Jakarta Transactions 3.3.1) and XA_RETRY error code is returned is that something to consider an error?

All I'm trying to do is understand the javadocs of enlistResource.  If it returns false, what must I do?  Or what must I not do?  Will it ever return true again?  Or what must I expect about the state of the system? Shouldn't the javadocs tell me? If there are other documents (like the specification document or various other related documents) that do tell me, that I must read to fill in the missing instructions, where are the links to them from the javadocs?

You've been very helpful in helping me understand how this specification and API were put together and how to fill in the gaps; thank you.

jta-dev mailing list
To unsubscribe from this list, visit

Michael Musgrove

JBoss, by Red Hat
Registered Address: Red Hat Ltd, 6700 Cork Airport Business Park, Kinsale Road, Co. Cork.
Registered in the Companies Registration Office, Parnell House, 14 Parnell Square, Dublin 1, Ireland, No.304873
Directors:Michael Cunningham (USA), Vicky Wiseman (USA), Michael O'Neill, Keith Phelan, Matt Parson (USA)

Back to the top