-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
JBossAS-4.0.1 SP1
-
None
Setting the message-destination-link child element of the message-driven element does not work on JBoss 4.0.1sp1. JBAS-1130 is related to this but i think that message-destination-link support was only added for the message-destination-ref element but not for the message-driven element.
A message-driven bean can sspecify the message-destination it want's to listen to with the message-destination-link element (see http://java.sun.com/developer/EJTechTips/2005/tt0322.html#1).
i.e.:
<message-driven >
<ejb-name>RegEmailSender</ejb-name>
<ejb-class>ch.tvfrutigen.chandertaler.ejb.service.RegEmailSenderBean</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-link>RegEmailsQueue</message-destination-link>
...
</message-driven>
It should be possible that the senders of a message and the processing MDBs can link to the same message-destination in the assembly-descriptor. Therefore, only the message-destination in the assembly-descriptor must be mapped to a jndi-name in jboss.xml.
Setting the message-destination-link elment on JBoss 4.0.1sp1 has no effect. It is still necessary to map the MDB's to the jndi-name of the queue/topic using the destination-jndi-name element. IMHO, it should not be necessary to specify the destination-jndi-name element when using message-destinations.
- duplicates
-
JBAS-1282 Fallback to message-destination-type
- Closed