16.10.2015 Views

Getting Started with WebSphere Application Server

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

110 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> Community Edition<br />

Figure 6.1 - Messaging: The big picture<br />

6.2 Java Message Service<br />

Java EE includes the Java Message Service (JMS) specification, which defines a set of<br />

interfaces and semantics that Java EE applications can utilize to send or receive messages<br />

to a messaging provider. A messaging provider provides the infrastructure that supports<br />

messaging, such as Active MQ or IBM <strong>WebSphere</strong> MQ products. JMS is the API<br />

specification only. It is analogous to what JDBC does for accessing databases.<br />

6.2.1 JMS application roles<br />

A JMS application is composed of the following parts:<br />

1. JMS provider - This is a messaging system that implements the JMS<br />

specification. Community Edition uses Active MQ as its default JMS provider.<br />

2. JMS client - This is a Java application that sends and receives messages. There<br />

are two kinds:<br />

- JMS Producer - A JMS client that sends messages to a destination of a JMS<br />

provider.<br />

- JMS Consumer - A JMS client that receives messages from a destination of a<br />

JMS provider.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!