concept @messagedriven annotation in category ejb

appears as: @MessageDriven notation, The @MessageDriven notation
EJB 3 in Action, Second Edition

This is an excerpt from Manning's book EJB 3 in Action, Second Edition.

4.3.4. Using the @MessageDriven annotation

MDBs are one of the simplest kinds of EJBs to develop, and they support the smallest number of annotations. The @MessageDriven annotation and the @ActivationConfigProperty annotation nested inside it are the only MDB-specific annotations. The @MessageDriven annotation in the example represents what you’ll use most of the time. The annotation is defined as follows: