
Learn Apache ActiveMQ, an open source message broker, and understand queues and topics. Start with a Java console application and implement ActiveMQ in Spring MVC or Spring Boot.
Explore how Java Messaging Service enables two Java applications to interact via a message queue using ActiveMQ, with Spring MVC integration for publishers and consumers.
Publish a message to a queue where only one of many attached consumers processes it, enabling background tasks like emailing customers and updating shipments in Spring MVC with ActiveMQ.
Understand what a queue is in messaging through a WhatsApp analogy, where publishers send to a queue and consumers receive messages in round robin, via ActiveMQ.
Install Apache ActiveMQ, download the stable release, extract it, and start ActiveMQ on localhost port 8161. Create a queue demo and log in with admin admin to see pending messages.
Add authentication and authorization to Apache ActiveMQ by configuring simple authentication and authorization plugins in activemq.xml, securing broker access for queues and topics for the admins group.
Publish your first message to an ActiveMQ queue from a Java application by configuring a connection factory, session, and producer to send a 'first message' to the demo queue.
Explore client acknowledgement mode in Java messaging, showing manual acknowledgement, message redelivery until acknowledgement, and when to use client versus auto mode in a consumer.
Showcases a real-time pattern with ActiveMQ by publishing a JSON message from a REST API to a queue, enabling a consumer to generate an Excel file and email it.
Create a topic in Apache ActiveMQ and explore the publish-subscribe model, starting with a subscriber and a publisher to see how messages flow.
Publish messages to a topic using a JMS publisher with ActiveMQ, demonstrating topic creation, text messages, and durable subscribers to observe offline delivery behavior.
Set up Spring application with ActiveMQ by adding Spring ActiveMQ and Spring Template, configure publisher and consumer under com.demo, and send a json message to queue when viewing a product.
Configure a JMS publisher with Spring template by creating a GM's config class, enabling JMS, and wiring an ActiveMQ connection factory and JmsTemplate to publish messages to the queue.
Build a JMS consumer with the Spring JMS template, attach it to the demo queue on ActiveMQ, receive json messages, and print product name after mapping to a product object.
Set up a Spring Boot application by adding ActiveMQ dependencies in pom.xml and configuring the broker URL and credentials in application.properties. Spring Boot handles boilerplate for both publisher and consumer.
Explore how to use Java messaging service and integrate it with Spring MVC and Spring Boot through the Spring template, and stay tuned for additional lectures coming soon.
***** Some Reviews From Students *****
I like that the teacher explains the basics, applies them in spring mvc and later on spring boot, he assumes that Spring concepts are comfortable with the students. It is simple but straight forward, for devs with a small experience within java and spring.
Very well described course for JMS.
Excellent to learn JMS with Spring MVC and Spring Boot.
Very good explanation for the beginners with real example. Thank you very much
straight and simple
Apache ActiveMQ is open source message broker developed in Java. Have you ever thought how WhatsApp works ? One to one messaging and one to many messaging techniques you will learn in this course. This course is not about how WhatsApp works but its all about Apache ActiveMQ.
Many times you are in need where two or more of your Java applications need to communicate with each other. There comes the JMS (Java Messaging Service) in picture. You can execute time consuming task of your application in asynchronous manner using Apache ActiveMQ. This you will learn in this course when I will show you Real World Example with JSON message.
In this course you will learn Java Messaging Service (JMS) with Apache ActiveMQ.
You will learn Apache ActiveMQ.
You will get idea how WhatsApp works.
You will learn to publish the message to queue from Java Console App, Spring MVC and Spring Boot App using JMS template. This message can be in any format like simple text OR JSON OR XML.
You will learn to consume this message from Queue to Java Console App, Spring MVC and Spring Boot App.
Real time example with JSON message will give you better idea on when to use Apache ActiveMQ.
You will learn to publish the message to topic from Java Console App, Spring MVC and Spring Boot App using Spring JMS Template. This message can be in any format like simple text OR JSON OR XML.
You will learn to consume this message from Topic to Java Console App, Spring MVC and Spring Boot App.
You will learn difference between Queue and Topic so that will clear you on when to use Queue and Topic.
You will learn to create message publisher and consumer for both Queue and Topic using Spring MVC and Spring Boot separately.