You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/10/23 17:01:00 UTC

[jira] [Commented] (OFBIZ-13723) Upgrade geronimo-transaction to 4.0.0 and migrate from javax.transaction to jakarta.transaction

    [ https://issues.apache.org/jira/browse/OFBIZ-13723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18131039#comment-18131039 ] 

ASF subversion and git services commented on OFBIZ-13723:
---------------------------------------------------------

Commit d780c1807a5be239567d2d398d9af6119e5cddb5 in ofbiz-plugins's branch refs/heads/trunk from Mridul Pathak
[ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=d780c1807 ]

Improved: Run the passport user sync with TransactionUtil.doNewTransaction (OFBIZ-13723)

GitHubAuthenticator and LinkedInAuthenticator suspended the current transaction by hand and kept it in a javax.transaction.Transaction variable, which ties the plugin to the javax.transaction API that the framework is moving away from. They now use TransactionUtil.doNewTransaction, which compiles against both javax.transaction and jakarta.transaction. A failure while creating or updating the user now rolls back that transaction instead of committing the partial work, and a failure to suspend or resume the transaction is reported instead of only logged.


> Upgrade geronimo-transaction to 4.0.0 and migrate from javax.transaction to jakarta.transaction
> -----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13723
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13723
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/entity
>    Affects Versions: Upcoming Branch
>            Reporter: Mridul Pathak
>            Assignee: Mridul Pathak
>            Priority: Major
>
> h3. Problem
> geronimo-transaction 4.0.0 implements the Jakarta Transactions 2.0 API ({{jakarta.transaction}}), so the Dependabot update (#2410) does not compile against our {{javax.transaction}} code. Commons DBCP's managed connection pool, which enlists our JDBC connections, is still only available for {{javax.transaction}} (DBCP-589).
> h3. Proposal
> Move OFBiz from {{javax.transaction}} to {{jakarta.transaction}} ({{javax.transaction.xa}} stays, it is part of the JDK), upgrade to geronimo-transaction 4.0.0, and replace commons-dbcp2 with {{org.apache.tomcat:tomcat-dbcp}}, the same DBCP 2.14.0 code repackaged by Tomcat for {{jakarta.transaction}} and versioned with our Tomcat dependency. Custom code that uses {{javax.transaction}} types returned by {{TransactionUtil}} (for example {{suspend()}}) needs the same import change. The passport plugin needs a matching change in ofbiz-plugins.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)