'How to create an infinite receiver/listener in Azure Service Bus - Java Spring Boot

Requirement is to create a background listener process that will receive and process the message from the service bus subscriptions. I have searched many resources but couldnt able to find a solution. The message should not be in DELETE mode but rather be in PEEK_LOCK mode so that we can abandon the messages whenever an error occurs in the processing logic where it will re queue again. Service bus tier : Standard. Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source