Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.06 KB

File metadata and controls

47 lines (32 loc) · 2.06 KB

Sample for Azure Service Bus Spring Boot client library for Java

Key concepts

This sample project demonstrates how to use Service Bus with Spring Boot.

Prerequisites

Getting started

Create Service Bus on Azure

  1. Go to Azure portal and create the service by following this link.
  2. Mark down the Primary Connection String.
  3. In the Overview blade, create queue and topic. Mark down your queue name and topic name.
  4. Click your created topic, add subscription in the Subscriptions blade. Mark down your subscription name.

Examples

Config the sample

  1. Navigate to src/main/resources and open application.properties.
  2. Fill in the connection-string, queue-name, topic-name, and subscription-name.

Run with Maven

  1. Change directory to folder azure-spring-boot-sample-servicebus.

  2. Run below commands.

    mvn package
    java -jar target/azure-spring-boot-sample-servicebus-0.0.1-SNAPSHOT.jar
    

Troubleshooting

Next steps

Please check the following table for reference links of detailed Service Bus usage.

Type Reference Link
Queues Use Azure Service Bus queues with Java to send and receive messages
Topics & Subscriptions Use Service Bus topics and subscriptions with Java

Contributing