Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactors JtaConnection to allow status enforcement by JTA implementation #8479

Merged

Conversation

ljnelson
Copy link
Member

This pull request refactors JtaConnection (and makes requisite changes in other files to accommodate) so that if desired all enlistment validation can be performed by the JTA implementation, rather than proactively by the Helidon classes.

This pull request is in response to #8441 but it is not clear that the desired use case is supportable. The refactorings help more cleanly separate responsibilities, however.

The refactorings are behind a system property for the moment (helidon.jta.preemptiveEnlistmentChecks). To run an application with these refactorings in effect, pass false for this value (it is true by default for backwards compatibility).

Documentation impact: none; this is an internal refactoring only.

@ljnelson ljnelson added enhancement New feature or request P4 jpa/jta integration java Pull requests that update Java code 4.x Version 4.x labels Mar 14, 2024
@ljnelson ljnelson requested a review from tjquinno March 14, 2024 22:56
@ljnelson ljnelson self-assigned this Mar 14, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 14, 2024
@ljnelson ljnelson marked this pull request as ready for review March 18, 2024 23:53
ljnelson added 5 commits June 24, 2024 14:43
…is STATUS_MARKED_ROLLBACK

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
@ljnelson ljnelson force-pushed the 8441-jtaconnection-marked-for-update-0 branch from 277e7fe to 6fdf12a Compare June 24, 2024 21:43
tjquinno
tjquinno previously approved these changes Jun 26, 2024
…tests

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
@ljnelson ljnelson merged commit ccee4c6 into helidon-io:main Jun 26, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x enhancement New feature or request integration java Pull requests that update Java code jpa/jta OCA Verified All contributors have signed the Oracle Contributor Agreement. P4
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants