Spring: Messaging with JMS
2h 21mIntermediate2018-06-08
Authors

Michael D. Rodgers, Jr
Java Web Applications Engineer and Consultant
Course details
The Java Message Service (JMS) is a Java API that defines a common set of interfaces that allow applications to securely pass along and receive messages. In this course, learn how to implement messaging within your enterprise Spring applications using JMS. Learn the basics of the JMS specification within Spring and review how to send messages to ActiveMQ, view messages in the ActiveMQ Web Console, and use Spring JMS message converters. Plus, learn how to configure connections, approach response management, and more.
Learning objectives
Spring API advantages over JMS 1.1 Spec
Message queues and servers
Configuring ActiveMQ server
Sending messages to ActiveMQ
Using Spring JMS message converters
Connection configuration best practices
Transaction management with Spring JMS
Using custom headers
Response management
Learning objectives
Spring API advantages over JMS 1.1 Spec
Message queues and servers
Configuring ActiveMQ server
Sending messages to ActiveMQ
Using Spring JMS message converters
Connection configuration best practices
Transaction management with Spring JMS
Using custom headers
Response management
Skills covered
SpringAPIsSoftware Development ToolsOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Using the exercise files
1. Getting Started with Spring JMS
- 04 - Understanding JMS 1.1 Spec
- 05 - JMS 1.1 versus Spring JMS API
- 06 - Spring JMS basic connection, part 1
- 07 - Spring JMS basic connection, part 2
2. MQ Server, Message Queues, and Topics
- 08 - Understanding message queues and servers
- 09 - Configure ActiveMQ server
- 10 - Send messages to ActiveMQ
- 11 - View messages in ActiveMQ Web Console
- 12 - Read from ActiveMQ message queue
3. Message Types and Converters
- 13 - Spring JMS message converters
- 14 - Project work for JMS message converter
- 15 - Example code using Spring JMS converter
- 16 - Demonstrate app with changes
- 17 - Message converter for XML messages
- 18 - Create custom message listener with Spring
- 19 - Register custom message listener with Spring
4. Configs, Pooling, and Transactions
- 20 - Connection configuration practices with application properties
- 21 - Connection configuration using SingleConnectionFactory
- 22 - Connection configuration using CachedConnectionFactory
- 23 - Transaction management with Spring JMS (transactions)
- 24 - Transaction management with dead letter queue
5. Sessions, Headers, and Response Management
- 25 - JMS headers and ways to use them
- 26 - JMS headers and response management
- 27 - Response management using @sendTo('destination')
- 28 - Response management using MessageBuilder sending JMS headers
- 29 - Response management using JmsResponse
Conclusion
- 30 - Next steps
Related courses
- Spring Boot 3 Essential Training
- Data Resilience with Spring and RabbitMQ Event Streaming
- Achieving Low-Latency Data with Edge Computing
- Spring Boot 2.0 Essential Training
- Java Frameworks: Quarkus vs. Spring
- Building Real-Time Web Apps with Spring Boot and WebSockets
- Learning Spring with Spring Boot
- Advanced Spring: Application Events
Related learn paths
- Become a Spring Developer
- Advance Your Skills in the Hadoop/NoSQL Data Science Stack
- Getting Started as a Java Developer
- Building Your Skills in Spring Development
- Getting Started In Spring Development
- Advance Your Spring Development Skills
- Java Foundations Professional Certificate by JetBrains
- Building Your Java Skills