2 Replies Latest reply on Oct 17, 2017 10:50 AM by Yair Shkedi

    Can't adding MDB to wildfly 10

    Yair Shkedi Newbie

      Hi,

      I am upgrading jboss 4.03 to wildfly 10.

      I am adding to the war, jar that contain MDB base annotions.

      When I deploy my war I got the following error:

       

      2017-10-17 13:25:38,870 ERROR [org.jboss.as.controller.management-operation] (management task-4) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "<myWar.war>")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [

          "jboss.deployment.unit.\"<myWar.war>\".component.mdb/init.CREATE is missing [jboss.ra.hornetq-ra]",

          "jboss.deployment.unit.\"<myWar.war>\".component.mdb/fdel.CREATE is missing [jboss.ra.hornetq-ra]",

          "jboss.deployment.unit.\"<myWar.war>\".component.mdb/activities.CREATE is missing [jboss.ra.hornetq-ra]"

      ]}

       

      my jar adding the MDB with the following way:

       

      @MessageDriven(name = "mdb/activities", activationConfig =

              {

              @ActivationConfigProperty(propertyName = "messagingType", propertyValue = "javax.jms.MessageListener"),

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

              @ActivationConfigProperty(propertyName = "Destination", propertyValue = "queue/activities"),

              @ActivationConfigProperty(propertyName = "ConnectionFactoryName", propertyValue = "ConnectionFactory"),

              @ActivationConfigProperty(propertyName = "Transacted", propertyValue = "false"),

              @ActivationConfigProperty(propertyName = "Xa", propertyValue = "false"),

              @ActivationConfigProperty(propertyName = "DeliveryOption", propertyValue = "B"),

              @ActivationConfigProperty(propertyName = "SubscriptionDurability", propertyValue = "Durable"),

              @ActivationConfigProperty(propertyName = "MaxPoolSize", propertyValue = "20"),

              @ActivationConfigProperty(propertyName = "MaxMessages", propertyValue = "10")

                      })

      public class ActivitiesAsynchReceiver extends CommonHibernateAccessor implements MessageListener {

       

       

          private static Log sLogger = CoreLogger.obtainLogger(ActivitiesAsynchReceiver.class);

       

          public void onMessage(Message message) {

              bla bla bla

          }

       

      I am using standalone.xml configuration and I added the relevant topics.

       

      How can I solve it and adding the MDBs in correct way?

       

      Thanks,