[BUG] Full JMS 2.0 parity over AMQP is a feature supported only by a Premium Messaging namespace.
See original GitHub issueDescribe the bug
Recently, We started to see exception with Service Bus integration by using azure-servicebus-jms-spring-boot-starter
Exception or Stack Trace Caused by: org.apache.qpid.jms.provider.exceptions.ProviderConnectionRemotelyClosedException: Full JMS 2.0 parity over AMQP is a feature supported only by a Premium Messaging namespace. TrackingId:26696ea708944480b39ce0a5c1a7b235_G27, SystemTracker:gateway7, Timestamp:2020-07-30T10:30:41 [condition = amqp:not-implemented]
To Reproduce Register a Service Bus Basic Tier
Code Snippet
@JmsListener(containerFactory = "topicJmsListenerContainerFactory", destination = "topic-name", subscription = "subscription-name")
public void receiveMessage(JmsMessage message) throws JsonProcessingException, JMSException {
JmsMessageFacade messageFacade = message.getFacade();
String messageBody = null;
if(messageFacade instanceof AmqpJmsBytesMessageFacade) {
messageBody = new String(((AmqpJmsBytesMessageFacade) messageFacade).copyBody());
} else if (messageFacade instanceof AmqpJmsTextMessageFacade) {
messageBody = ((AmqpJmsTextMessageFacade) messageFacade).getText();
}
System.out.println(messageBody);
}
Expected behavior Receive message
Screenshots If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
- OS: macOS
- IDE : Intellij
- Version of the Library used azure-servicebus-jms-spring-boot-starter: 2.3.2
Additional context Add any other context about the problem here.
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- Bug Description Added
- Repro Steps Added
- Setup information Added
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (6 by maintainers)
We resolved the issue and rolled out the upgrade to production. Your application should start working now. As a reminder, JMS is supported only in Premium Messaging. In standard, JMS partially worked in some cases. That partial support will remain in Standard messaging, but full JMS support will only be available in Premium Messaging.
In case anyone needs to set JMS 1.1 here’s a snippet: