12.2. JMS Pieces and Parts

The Java Message Service introduces us to some new terminology. Here are some of the important terms to know to make sense of the APIs and documentation.

Connections.

In our application, we talk of a client portion and a server portion, but in JMS terms both of these entities are clients of the JMS messaging provider. The JMS clients connect to the messaging provider by creating a Connection, which is done via a ConnectionFactory object. In the publish-subscribe model, the specific classes used are TopicConnection and TopicConnectionFactory; for point-to-point messages, QueueConnection and QueueConnectionFactory are used.

Sessions.

Once a connection is obtained with the messaging provider, one or more sessions are then ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.