J2EE 1.4 components can refer to message destination objects by using "logical" names called message destination references. You can use the deployment descriptor editors to define message destinations for J2EE 1.4 components.
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 the purpose of 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-ref>
To define a message destination: