How can I deploy my MDB with xml descriptors in a WAR on JBoss EAP 6?

Solution Verified - Updated -

Issue

I have a jboss-ejb3.xml and ejb-jar.xml below.

Please note that they are under WEB-INF/lib/SOMESUBMODULE.jar/META-INF/

It all looks by-the-book, but JBoss does not pick the configuration up.

Anything I am missing here?

jboss-ejb3.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss xmlns="http://www.jboss.com/xml/ns/javaee"
       xmlns:jee="http://java.sun.com/xml/ns/javaee"
       xmlns:mdb="urn:resource-adapter-binding"
       xmlns:security="urn:security">

  <jee:assembly-descriptor>

    <mdb:resource-adapter-binding>
      <jee:ejb-name>MyMessageBean</jee:ejb-name>
      <mdb:resource-adapter-name>generic-ra.rar</mdb:resource-adapter-name>
    </mdb:resource-adapter-binding>

  </jee:assembly-descriptor>

</jboss>

ejb-jar.xml

<ejb-jar>

  <enterprise-beans>

    <message-driven>
      <ejb-name>MyMessageBean</ejb-name>
      <ejb-class>test.MyMessageBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-destination-type>javax.jms.Queue</message-destination-type>
      <activation-config>
        <activation-config-property>
          <activation-config-property-name>destinationType</activation-config-property-name>
          <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>destinationJndiName</activation-config-property-name>
          <activation-config-property-value>MY_QUEUE_NAME
          </activation-config-property-value>
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>connectionFactoryJndiName</activation-config-property-name>
          <activation-config-property-value>XAQueueConnectionFactory</activation-config-property-value>
        </activation-config-property>
      </activation-config>
    </message-driven>

  </enterprise-beans>
</ejb-jar>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.