question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Full JMS 2.0 parity over AMQP is a feature supported only by a Premium Messaging namespace.

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yvgopalcommented, Aug 5, 2020

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.

0reactions
Chuy288commented, Jan 27, 2022

In case anyone needs to set JMS 1.1 here’s a snippet:

    @Bean
    public ConnectionFactory connectionFactory() {
        AzureServiceBusJMSProperties properties = new AzureServiceBusJMSProperties();
        properties.setConnectionString(connectionString);
        properties.setIdleTimeout(Integer.valueOf(idleTimeout));
        properties.setPricingTier(pricingTier); //set here standard or basic

        NonPremiumServiceBusJMSAutoConfiguration jmsAutoConfiguration = new NonPremiumServiceBusJMSAutoConfiguration(properties);
        return jmsAutoConfiguration.jmsConnectionFactory();
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using JMS 2.0 APIs to access Azure Service Bus
This feature allows us to interact with Azure Service Bus through JMS over AMQP 1.0. Announcing general availability support for Java Message ......
Read more >
spring-jms selector doesn't work with servicebus
I'm using spring-jms with azure's servicebus. I'm trying to use selector to distinguish between message types, but I can't get it working. This ......
Read more >
A brand new website interface for an even better experience!
[BUG] Full JMS 2.0 parity over AMQP is a feature supported only by a Premium Messaging namespace.
Read more >
Why Microsoft is showing interest in Java Messenger service 2.0
Microsoft and Java relationship. Microsoft has been working towards bridging the gaps between theirs and Java services for quite some time.
Read more >
Advanced Message Queuing Protocol (AMQP) JMS Mapping ...
functionality necessary to support particular JMS 2.0 features. Status: This document was last revised or approved by the OASIS Advanced ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found