
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.
Describe topic as a publish-subscribe model where a publisher sends to a topic and all subscribers receive the message, unlike queue's one-to-one delivery, illustrated by group chats and YouTube subscriptions.
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.
Learn how the ActiveMQ web console uses separate credentials to access the broker, configure admin/admin in credentials.properties, restart ActiveMQ, and ensure the Java app uses the same admin/admin for publishing.
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.
Consume messages from a demo queue in a Java application by creating a consumer, starting an ActiveMQ connection, using auto acknowledgement, and a message listener.
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.
Publish four messages to the demo queue and observe round robin delivery to two consumers. The queue distributes messages alternately, illustrating multiple consumers in a Java messaging setup.
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.
Publish a json message to an ActiveMQ queue from a Java application, covering dependency setup, connection factory, session, and queue configuration; build and verify the json in the demo queue.
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.
Explore how topics deliver messages to multiple consumers in Apache ActiveMQ, contrasting with queues; learn about durable topic subscribers, publishing to a demo topic, and running multiple consumer instances.
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.
Publish messages to an ActiveMQ queue using a Spring template by converting a product object to JSON and sending it to the demo queue with a message publisher.
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.
Learn to implement Java Message Service with Spring Boot, configuring JMS using Spring Boot and the Spring template to publish and consume messages from a queue with Apache ActiveMQ.
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.
Publish messages to a JMS queue using Spring Boot and JMS template via a REST API, sending to the demo queue on ActiveMQ until a consumer attaches.
Create a JMS consumer with Spring Boot and JmsTemplate, using @JmsListener bound to the demo queue to receive messages and print them, and verify delivery in ActiveMQ.
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.