Chapter 16. Asynchronicity and messaging

Chapter 16. Asynchronicity and messaging

16.1. Asynchronicity
16.1.1. Asynchronous methods
16.1.2. Asynchronous events
16.2. Messaging in Seam
16.2.1. Configuration
16.2.2. Sending messages
16.2.3. Receiving messages using a message-driven bean
16.2.4. Receiving messages in the client

Seam makes it very easy to perform work asynchronously from a web request. When most people think of asynchronicity in Java EE, they think of using JMS. This is certainly one way to approach the problem in Seam, and is the right way when you have strict and well-defined quality of service requirements. Seam makes it easy to send and recieve JMS messages using Seam components.

But for many usecases, JMS is overkill. Seam layers a simple asynchronous method and event facility over the EJB 3.0 timer service.