It's not possible to run Azure Service Bus locally.
Both Azure Service bus and ActiveMQ support AMQP 1.0.
This project shows how the same spring boot app can be used to connect to a remote Azure Service Bus or a local Active MQ
Connecting to cloud Azure service bus or ActiveMQ locally with same JMS code
Java