Java Message Service
A
Part of the Java: Under the Hood™
Series
Audience: Programmers who
have a good working knowledge of the Java programming language and
need to learn about messaging concepts and the JMS API.
Course Length: 1 day
Java Message Service
covers the concepts of messaging, including point-to-point and publish/subscribe
domains. Students learn about the architecture of the JMS API and
how to develop Java applications that use messaging.
Course
Outline (download
pdf version)
Module 1: An Overview of JMS
Messaging allows applications to
communicate over a distributed environment that is loosely coupled.
Message services exist on many different platforms, and the Java
Message Service API allows for Java programs to communicate with
these existing message services. Topics discussed in this module
include:
- Messaging concepts
- Popular message service implementations
- Point-to-point messaging
- Publish/subscribe messaging
- The Java Message Service API
- J2EE and JMS
- Installing the necessary software
and documentation.
Module 2: Programming with the
JMS API
In this module, the architecture
of JMS will be discussed, including the steps that are involved
in writing JMS applications. Topics discussed include:
- Connection factories
- Destinations
- Connections
- Sessions
- Producing a message
- Consuming a message
Module 3: A JMS Application
- Using JNDI to locate the connection
factory and destination
- Connecting to a destination
- Creating a session
- Creating a new message
- Sending a message
- Creating a message listener
- Deploying and running the application
Module 4: Messages
- Message headers
- Message properties
- Message bodies
- The javax.jms.Message interface
- Text messages
- Stream messages
- Object messages
- Bytes messages
- Map messages
Module 5: Common Message Programming
Features
- Using a message selector
- Using a durable subscription
- Using transactions
- Using the acknowledgement modes
- Using the request/reply mechanism
Module 6: JMS Exceptions
- The javax.jms.JMSException class
- The JMS standard exceptions
|