Getting started
This tutorial provides an overview of the Java Message Service (JMS) and offers the basics for developing programs that use it. JMS was developed by Sun Microsystems to provide a way for Java programs to access an enterprise messaging system, also known as message oriented middleware (MOM). MOM provides a mechanism for integrating applications in a loosely coupled, flexible manner by providing asynchronous delivery of data between applications in an indirect way through an intermediary.
Before taking this tutorial you should be familiar with Java programming and object-oriented programming concepts.
To write the programs described in this tutorial, you need an editing environment. It can be as basic as an operating system editor. In a development context, many people use an integrated development environment (IDE) because it possesses debuggers and other features designed specifically for writing and testing code.
To compile the programs, you'll need the Java compiler (javac.exe). You will also need the JMS classes in the package javax.jms and the Java Naming and Directory Interface (JNDI) classes in the package javax.naming.
You can download these from Sun: JMS and JNDI.
To execute and test the programs, you need access to a vendor implementation of JMS. Most Java 2 Enterprise Edition (J2EE) vendors provide an implementation of JMS. See your vendor documentation for setting up the JMS runtime and executing programs.
Some of your programming decisions will depend on the JMS version in use (see New in JMS 1.1: Unified domains ). JMS version 1.1 supports Point-to-point interfaces and Pub/sub interfaces only for backward compatibility, and you can safely skip the sections of this tutorial on those topics if you are doing strictly new development using a provider implementation based on JMS version 1.1.


