ActiveMQ "Classic" doesn't ship a Jakarta Messaging 3 compatible client (i.e. the first version of Jakarta Messaging to use the jakarta
namespace). There is some discussion on AMQ-7309 regarding this, but it is still in the "open" state which means there is no official Jakarta Messaging 3 compatible client for ActiveMQ "Classic" at this point. There are plans to provide one in the future, but before transitioning to the jakarta
namespace JMS 2 support must be implemented. These changes look to be coming with the 5.18.0 release at the earliest and that release currently isn't scheduled. You can specifically track progress with the JMS 2 implementation here.
To be clear, ActiveMQ Artemis has full support for JMS 2 and provides a Jakarta-compatible client. You may consider migrating as once Artemis reaches a sufficient level of feature parity with the "Classic" code-base it will become the next major version of ActiveMQ.