Skip to content
Advertisement

OpenLiberty JakartaEE 9: access TransactionManager

On Docker Image open-liberty:22.0.0.1-full-java17-openj9 with the following activated features:

JavaScript

and the javax namespace, it was possible to create an TransactionManager via the api dependency

JavaScript

in the following way:

JavaScript

We are moving to JakartaEE9 and this one API dependency seems not to have an equivalent for the jakarta.* namespace, so that this is not compiling:

JavaScript

In the openliberty zip, see https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/22.0.0.1/openliberty-runtime-22.0.0.1.zip an equivalent implementation for

JavaScript

is available here:

JavaScript

But I can’t seem to find the proper API for the io.openliberty.transaction package. Does anyone know how to access the TransactionManagerFactory? Any help is appreciated.

— UPDATE: Until the API package is available I chose to create the TransactionManager via reflection:

JavaScript

} }

Advertisement

Answer

For 22.0.0.3, the api is published finally correctly here: https://repo.maven.apache.org/maven2/io/openliberty/api/io.openliberty.transaction/1.1.62/

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement