Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jta-dev] Definition of active?

There is only one usage of active in the JTA sense of the word in main specification (in the section you referenced):

"The jakarta.transaction.TransactionScoped annotation provides the ability to specify a standard Jakarta Context Dependency Injection scope to define bean instances whose lifecycle is scoped to the currently active Jakarta Transactions transaction."

All of the other usages of the term are referring to CDI contexts [1] which are different from the JTA transaction context.

On Mon, Nov 21, 2022 at 6:37 PM Laird Nelson <ljnelson@xxxxxxxxx> wrote:
On Mon, Nov 21, 2022 at 9:42 AM Michael Musgrove <mmusgrov@xxxxxxxxxx> wrote:
So would updating the javadoc to the following text:

    IllegalStateException - a transaction is neither active nor marked for rollback

be a satisfactory resolution to the ambiguity?

Yes, that would be a good start.  Then we'd need to take a look at the usage of the word "active" in the specification itself, such as in section 3.8 (arbitrarily selected) ( where I assume "active" is also used to actually mean "active or marked for rollback". There are probably other opportunities for clarity.

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