This course introduces Java developers to asynchronous messaging using the Java Message Service, or JMS. Both the point-to-point and publish-and-subscribe messaging styles are covered, but there is an emphasis on the more popular point-to-point approach using message queues. The course moves quickly from JMS fundamentals — connections, sessions, queues, topics, etc. — to intermediate techniques such as message properties and selectors. By the end of the day, students will understand JMS reliability and be able to make intelligent architectural choices between delivery modes, acknowledgement modes, and transacted sessions.
This version of the course is designed to work with the Java EE 5 SDK, Update 7, which includes the GlassFish application server, version 2.1. Variants of the course are also available with specific support for recent versions of JBoss and WebLogic.
- Solid Java programming experience is required — consider Course JVA-103 or its equivalent a firm prerequisite.
- An understanding of Java web applications will be helpful, but is not required.
- Use JMS queues to manage message transmission between a single producer and a single consumer.
- Use JMS topics to allow for broadcasting of messages in real time.
- Use various JMS message types, including text, object, and map-based messages.
- Set message headers and use properties to define additional information about messages.
- Use message selectors to filter messages in consumption.
- Trigger redelivery of messages using various acknowledgement modes and techniques.
- Use JMS transactions to assure that message receipts and sends are grouped into atomic units of execution.
Course Length: 1 day