The code for an Event-Driven Consumer consists of two parts: 1. Initialization—The application creates an application-specific consumer and associates it with a particular Message Channel (60). After this code is run once, the consumer is ready to receive a series of messages. 2. Consumption—The consumer receives a message and passes it to the application for processing. This code is run once per message being consumed.

