Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18380

message-destination-type in ejb-jar.xml is ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 30.0.0.Beta1, 30.0.0.Final
    • 29.0.0.Final
    • EJB, JMS
    • None
    • Other

      message-destination-type is ignored in deployment descriptor for MDB. message-destination-type can be set to values {jakarta.jms.Queue}} or {jakarta.jms.Topic}} and should specify type of destination for MDB.

      Example of such an ejb-jar.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar xmlns="http://xmlns.jcp.org/xml/ns/javaee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/ejb-jar_3_2.xsd"
               version="3.2">
      
          <!-- Define the message-driven bean -->
          <enterprise-beans>
              <message-driven>
                  <ejb-name>SimpleMdb</ejb-name>
                  <ejb-class&gt;SimpleMdb</ejb-class&gt;
                  <transaction-type>Container</transaction-type>
                  <messaging-type>javax.jms.MessageListener</messaging-type>
      
                  <message-destination-type>javax.jms.Topic</message-destination-type>
              </message-driven>
          </enterprise-beans>
      </ejb-jar>
      

      This was not hit with Artemis/AMQ7 resource adapter as it's able to derive type of destination when not set. This is the reason why TCK 10 tests do not fail. But IBM MQ 9 resource adapter is not doing it and relies on it to set type of destination.

      This issue is causing failure in TCK 10 test for IBM MQ 9 RA (this is where it was observed by there are many more - TBD):
      com/sun/ts/tests/jms/ee/mdb/xa/MDBClient.java#Test2

            ehugonne1@redhat.com Emmanuel Hugonnet
            ehugonne1@redhat.com Emmanuel Hugonnet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: