Use WebSphere bindings to define message-driven bean JNDI names

The message-driven-descriptor configures the destination for the message listener. A message destination reference is a logical name used to locate an enterprise bean in an EJB module that acts as a message destination. Message destination references exist only in J2EE 1.4 and later artifacts such as:

If multiple message destination references are associated with a single message destination link, then a single JNDI name for an enterprise bean that maps to the message destination link, and in turn to all of the linked message destination references, is collected during deployment. At run time, the message destination references are bound to the administered message destinations in the target operational environment. If a message destination reference and a message-driven bean are linked by the same message destination, both the reference and the bean must have the same destination JNDI name. When both have the same name, only the destination JNDI name for the message-driven bean is collected and applied to the corresponding message destination reference. If a deployer chooses to generate default bindings when installing the application, the installation wizard assigns JNDI names to the following incomplete message destination references:

If a message destination reference has a <message-destination-link>, then the JNDI name is set to ejs/message-destination-linkName . Otherwise, the JNDI name is set to eis/message-destination-refName .

This rule detects destination JNDI names for message-driven beans. An automated fix will copy the destination JNDI name from the weblogic-ejb-jar.xml file to the WebSphere(R) Application Server bindings file. The automated fix , however, will not set the ActivationSpec JNDI name or migrate the activation configuration properties in the ejb-jar.xml.

Manual solution for Liberty


Manual solutions for WebSphere traditional