8.2. Introducing JMS

If you are already familiar with the Java Message Service (JMS), you can skip this section.

JMS is a vendor-independent API that can be used on the J2EE platform for enterprise messaging. JMS abstracts access to message servers much like JDBC and JNDI abstract access to databases and naming services, respectively. When you use JMS for enterprise messaging, your application is portable and vendor independent with different message service providers.

Before we show you JMS programming, let's define some JMS terms. A Java application that uses JMS is a JMS client. The messaging system that handles the routing and delivery of messages is a JMS provider. A JMS client that generates a message is a producer and a JMS client that ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.