Message destinations are elements that specify logical message destinations within an application. The message-destination element defines a message-destination-name, which is used for linking. Message destinations can be defined in any module in the J2EE application as the referencing component. A message destination link on a message destination reference or a message-driven bean points to the name of a message destination.
At deployment, the message destination references are bound to the administered message destinations in the target operational environment.
For each message destination that you define, a message-destination element is added to the deployment descriptor for that application component.
The following code shows an example message destination defined in a deployment descriptor:
<message-destination>
<description></description>
<message-destination-name>MyDest</message-destination-name>
</message-destination>