Skip to content

Migrate aries transaction to Jakarta EE APIs#790

Open
f2par0 wants to merge 2 commits intoapache:trunkfrom
f2par0:jakarta-transaction-2.0
Open

Migrate aries transaction to Jakarta EE APIs#790
f2par0 wants to merge 2 commits intoapache:trunkfrom
f2par0:jakarta-transaction-2.0

Conversation

@f2par0
Copy link
Contributor

@f2par0 f2par0 commented Feb 5, 2026

In order to be able to create a version ops4j.pax.jms jakarta (cf ops4j/org.ops4j.pax.jms#72), providing a aries version compatible to jakarta is necessary

  • Upgrade to Java 17
  • Change javax.transaction* to jakarta.transaction* except for javax.transaction.xa provided by jdk
  • Updated geronimo-connector from 3.1.5 to 4.0.0 in pom.xml, osgi.core to 8.0.0 and osgi.cmpn to 7.0.0
  • Updated pom.xm to use Jakarta dependencies:
    • jakarta.resource-api instead of geronimo-j2ee-connector_1.6_spec
    • jakarta.validation-api instead of geronimo-validation_1.0_spec
    • jakarta.interceptor-api instead of javax.interceptor-api
    • jakarta.inject-api instead of javax-inject servicemix bundle
    • jakarta.el-api instead of javax.el-api
    • jakarta.enterprise.cdi-api instead of javax.enterprise.cdi-api
    • jakarta.transaction-api instead of javax.transaction-api

- Updated javax.inject.Inject to jakarta.inject.Inject in all test files
- Updated geronimo-connector from 3.1.5 to 4.0.0 in pom.xml
- Updated AbstractIntegrationTest to use Jakarta dependencies:
  - jakarta.resource-api instead of geronimo-j2ee-connector_1.6_spec
  - jakarta.validation-api instead of geronimo-validation_1.0_spec
  - jakarta.interceptor-api instead of javax.interceptor-api
  - jakarta.inject-api instead of javax-inject servicemix bundle
  - jakarta.el-api instead of javax.el-api
  - jakarta.enterprise.cdi-api instead of javax.enterprise.cdi-api
  - jakarta.transaction-api instead of javax.transaction-api
@stbischof
Copy link

this might also need an osgi-spec update

@f2par0
Copy link
Contributor Author

f2par0 commented Mar 6, 2026

this might also need an osgi-spec update

Hello,
the org.osgi.core has been updated to 8.0.0 and org.osgi.cmpn to 7.0.0, which dependency should be updated ?

@stbischof
Copy link

stbischof commented Mar 7, 2026

i would recomment to not use the cmpn anymore.

just use the apis wou really need
like

<dependency>
    <groupId>org.osgi</groupId>
    <artifactId>org.osgi.service.transaction.control</artifactId>
    <version>1.0.0</version>
    <scope>compile</scope>
</dependency>

what i am not aware of if is in the spec is any reference to a javax class is set that must be switched to jakarta.
https://docs.osgi.org/specification/osgi.cmpn/8.1.0/service.transaction.control.html

in this case i would recomment to open an issue here:

http://github.com/osgi/osgi/issues

or create a PR with the spec changes.

But i am not part of the aries team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants