Invalid Login Attempt

Lab: Introduction to Azure Service Bus with Java


In this lab, you will create, deploy, and configure an application using Java and the Azure Service Bus to demonstrate the use of messaging with queues. Your first exercise will be to create a development environment where you can create and debug Java code. After that, you will create a Service Bus queue, an Azure Function, and an Azure Cosmos DB database to demonstrate the full message cycle. The Java web application, running in Docker on your development machine, will use the Service Bus queue to communicate with the Azure function which will process the message and finally save the result into the Cosmos DB database.

  • Estimated time required to complete: 2 hours, 0 minutes
  • You will have access to this environment for 3 hours, 20 minutes
  • Learning Credits Required: 5


Exercise 1: Create a Java Development Environment
In this exercise, you will set up a Java development environment inside of Microsoft Azure. This will include an Integrated Development Environment (IDE) using Ubuntu, the latest JDK, and Visual Studio Code.
Exercise 2: Create and build the initial Java project

In this exercise, you will install some Visual Studio Code extensions and load the Java project into the editor and check that your environment is configured properly.

Exercise 3: Creating a Service Bus Queue
In this exercise, you will create an Azure Service Bus namespace and queue.
Exercise 4: Create an Azure Cosmos DB Account
In this exercise, you will create an Azure Cosmos DB account.
Exercise 5: Creating an Azure Function
In this exercise, you will create an Azure Function that will tie the solution together as the message receiver and processor between the Java web app and the Cosmos DB database.
Exercise 6: Running the Application
In this exercise, you will run the final solution end-to-end and examine how the technologies fit together to form a working system.

Login to Start Lab

Not Registered? Already Registered?
Real Time Labs allow you to learn technology in an isolated environment without the hassle or cost of setting up a dedicated learning environment.

How it works