4 Replies Latest reply on Aug 26, 2015 5:45 AM by Sreenath Reddy

    Unable to load Message Driven Beans(MDB) on WildFly

    Sreenath Reddy Novice

      I am migrating my application froom Jboss 5.1.0 to WildFly 8.2.0. As part of migration we have few MDB which need to run on WildFly.

       

       

       

      @Name("MessageQueueProcessor")

      @MessageDriven(activationConfig = {

        @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),

        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

        @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/CRCRequest") })

      @Pool(value = "mdb-strict-max-pool")

      public class MessageQueueProcessor implements MessageListener {

        @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)

        public void onMessage(final Message message) {

        -------------------------------

        }

       

      I configured MDB in statnalone.xml as

      <mdb>

        <resource-adapter-ref resource-adapter-name="hornetq-ra"/>

          <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>

      </mdb>

      <pools>

          <bean-instance-pools>

          <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

          <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

          </bean-instance-pools>

      </pools>

       

       

      I am getting the below ERROR while starting the server and my application deployment was failing

       

      2015-08-25 23:40:39,621 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "project-ear.ear")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [

          "jboss.deployment.subunit.\"project-ear.ear\".\"project-ejb.jar\".component.MessageQueueProcessor.CREATE is missing [jboss.ra.hornetq-ra]",

          "jboss.deployment.subunit.\"project-ear.ear\".\"project-ejb.jar\".component.UserMessageProcessor.CREATE is missing [jboss.ra.hornetq-ra]"

      ]}

       

      Please let me know if I am missing anything..........