Apps that need to talk to each other asynchronously — think one-to-one or one-to-many messaging, the kind of pattern behind chat apps — typically lean on a message broker to do it reliably. This course works through that using Apache ActiveMQ, an open-source Java message broker, paired with the Java Messaging Service (JMS) API.
What you'll build
- Publishing messages to queues from a Java console app, Spring MVC, and Spring Boot, using JMS templates
- Consuming those queue messages back out across the same three approaches
- Doing the same for topics, understanding when a queue fits better than a topic and vice versa
- Working with message formats including plain text, JSON, and XML
A real-world example using JSON messaging ties the concepts together, so by the end you'll understand not just the JMS API itself but when ActiveMQ-backed asynchronous messaging is actually the right tool for a Java application.