@Frank Long Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I understand that your ask is if you can use JMS 1.1 to connect to Azure Service Bus Premium tier and what the difference is between JMS 1.1 and JMS 2?
Answer: Azure Service Bus Premium tier supports JMS 1.1 and JMS 2.0.
Azure Service Bus - Standard** tier supports limited JMS 1.1 functionality. For more details, please refer to this documentation.
More Info here.
However, there are some differences between the two versions.
JMS 2.0 is the latest version of the JMS API and provides several new features and improvements over JMS 1.1. Some of the key differences between JMS 1.1 and JMS 2.0 are:
- JMS 2.0 introduces a simplified API for sending and receiving messages, which reduces the amount of boilerplate code required to work with JMS.
- JMS 2.0 supports asynchronous message consumption using the new MessageListener interface, which simplifies the process of consuming messages from a queue or topic.
- JMS 2.0 introduces a new shared subscription feature, which allows multiple consumers to share the same subscription and receive messages in a load-balanced manner.
- JMS 2.0 provides a new simplified API for working with message headers and properties also has support for message selectors, which allow consumers to filter messages based on their properties.
In summary, both JMS 1.1 and JMS 2.0 can be used to connect to Azure Service Bus Premium tier. However, JMS 2.0 provides several new features and improvements over JMS 1.1.
This article talks about the difference between JMS 1.1 and JMS 2.0 in detail.
To learn more about using JMS with Azure Service Bus, you can refer to the following documentation:
- Java Message Service API(external Oracle doc)
- JMS developer guide for Azure Service Bus
- JMS 2.0 specification
- JMS 1.1 specification
Hope this answers.
** Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.