javaactivemq-classicjakarta-migration

activemq 5.16.x not working after converting javax to jakarta using eclipse transformer


I am using eclipse transformer for javax to jakarta conversion, in the similar lines I converted my activemq-all 5.16.7 into jakarta using the same eclipse transformer, no errors during compilation, but while running the application it is not returning from below line: "ConnectionFactory.createConnection()"

means it is not able to establish the connection with broker.

Appreciate any help.


Solution

  • Running a client jar through a byte-code translator to make it use jakarta instead of javax is unlikely to work and certainly not something that has been tested or is supported by the ActiveMQ community.

    If you want to use Jakarta classes from a client connecting to ActiveMQ Classic then you'll need to either of the following:

    Keep in mind that ActiveMQ Classic doesn't yet fully support JMS 2 (and therefore Jakarta Messaging 2 & 3.x). If you want full support for these you'll need to migrate to ActiveMQ Artemis.