Achieve your goals faster with our ✨NEW✨ Personalized Learning Plan - select your content, set your own timeline and we will help you stay on track. Log in and Head to My Learning to get started! Learn more

Offered By: OpenLiberty

Producing and Consuming Messages in Java Microservices

Learn how to produce and consume messages to communicate between Java microservices in a standard way by using the Jakarta Messaging API with the embedded Liberty Messaging Server or an external messaging server, IBM MQ.

Continue reading

Guided Project

Open Liberty

At a Glance

Learn how to produce and consume messages to communicate between Java microservices in a standard way by using the Jakarta Messaging API with the embedded Liberty Messaging Server or an external messaging server, IBM MQ.

You’ll learn how to communicate between Java web services when one service is producing a continuous stream of asynchronous messages or events to be consumed by other services, rather than just sending and receiving individual requests for data. You will also learn how to use a messaging server and client to manage the production and consumption of the messages by the services.

In this guide, you will first use the embedded Liberty Messaging Server to manage messages, then you will optionally switch to using an external messaging server to manage the messages, in this case, IBM MQ. You might use an external messaging server if the messaging mechanism is important to your application (e.g. during a bank transfer in a banking application). None of your messages are lost if there is a system overloading or outage.

You will learn how to write your Java application using the Jakarta Messaging API which provides a standard way to produce and consume messages in Java application, regardless of which messaging server your application will ultimately use.

Estimated Effort

30 Minutes

Level

Beginner

Skills You Will Learn

Jakarta EE, Java, Open Liberty

Language

English

Course Code

GPXX0XDOEN

Tell Your Friends!

Saved this page to your clipboard!

Have questions or need support? Chat with me 😊