Java Message Service – 1 Day
Java Message Service training 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.
What You Will Learn
- 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.
- Solid Java programming experience is required — consider Java Programming or its equivalent a firm prerequisite.
- An understanding of Java web applications will be helpful, but is not required.
Chapter 1. Fundamentals
- Asynchronous Messaging
- The Java Message Service
- Point-to-Point Messaging
- Publish-and-Subscribe Messaging
- Connections and Sessions
- Working with Queues
- Working with Topics
- GlassFish JMS Administration
Chapter 2. Message Content
- Message Types
- Header Fields
- Message Selectors
Chapter 3. Reliability
- Message Persistence
- JMS from Web Applications
- The Component Environment
- Acknowledgement and Redelivery
- Acknowledgement Modes
- Session Recovery
- What JMS Transactions Are and Aren’t
- Transaction Pitfalls
- Batch Processing
- JMS and EJB: Message-Driven Beans
- JMS and Web Services: SOAP Messaging
Appendix A. Learning Resources
|Hardware Requirements (Minimum)||1 GHz, 512 meg RAM, 500 meg disk space.|
|Hardware Requirements (Recommended)||2 GHz, 1 gig RAM, 1 gig disk space.|
|Operating System||Tested on Windows XP Professional. Course software should be viable on all systems which support the Java EE 5.0 SDK.|
|Network and Security||Limited privileges required|
|Software Requirements||All free downloadable tools.|
Server Support: GlassFish
This version of the course works with the GlassFish server. Our Java EE courses are available in variants that support various server products, including Tomcat, GlassFish, JBoss, and WebLogic. For more details, and to find a desired server-specific version of a course, see our server-support matrix.
IDE Support: Eclipse Galileo
In addition to the primary lab files, an optional overlay is available that adds support for Eclipse Galileo. Students can code, build, deploy, and test all exercises from within the IDE. Queue and topic administration are done from the command line using Ant.