# MessageDriven EJB

- Purpose
- Structure
- Applications
- Consequences

## Purpose

- To enable application of asynchronous message passing that allows the sender to send a message and terminate execution regardless of the receiver's status.

## Structure

- MessageDrivenBean : EJB for receiving and processing JMS (Java Message Service) messages

## Applications

- Can be used for implementing asynchronous message passing using JMS.
- Can be used when specific information needs to be updated asynchronously, and such information needs to be obtained by multiple objects.

## Consequences

- The logic that processes messages exists in one location, removing any code redundancies.
- Using JMS ensures clear logic division for message management.
- Possibility of message abuse is reduced by defining a standard for message management.