Search code examples
spring-bootjmsoracle-aqjakarta-migration

Oracle Advanced Queuing and Jakarta namespace


I am using Oracle AQ in my Java Spring Boot application. I have Oracle JMS implementation AQAPI as dependencies.

Recently I had tried to update the application to Spring Boot 3.x which is build on Jakarta, not Javax namespace. However my code is no longer compatible with Oracle AQ since is using Javax namespace, i.e. javax.jms.Connection.

So question how to solve this problem? Seems like Oracle has not yet produced new version of AQAPI compatible with Jakarta MS


Solution

  • Just to complete @mathze's response and copy/paste here current official maven coordinates.

    You just have to migrate to com.oracle.database.messaging:aqapi-jakarta (Jakarta JMS 3.0)

    <!-- https://mvnrepository.com/artifact/com.oracle.database.messaging/aqapi-jakarta -->
    <dependency>
        <groupId>com.oracle.database.messaging</groupId>
        <artifactId>aqapi-jakarta</artifactId>
        <version>23.2.0.0</version>
    </dependency>
    
    

    NB. note that -jakarta was added in artifactId.