MessageBean.java
package org.acme;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.jms.Message;
import javax.jms.MessageListener;
import org.jboss.ejb3.annotation.ResourceAdapter;
@MessageDriven(name="MDB", activationConfig = {
@ActivationConfigProperty(
propertyName = "destinationType", propertyValue = "javax.jms.Queue"
),
@ActivationConfigProperty(
propertyName="destination", propertyValue="FOO.TEST"
),
@ActivationConfigProperty(
propertyName="acknowledgeMode", propertyValue="Auto-acknowledge"
)
})
@ResourceAdapter("activemq-rar-5.4.2.rar")
public class MessageBean implements MessageListener {
public MessageBean() {
}
public void onMessage(Message message) {
}
}
standalone.xml
<subsystem xmlns="urn:jboss:domain:ejb3:1.2">
<mdb>
<resource-adapter-ref resource-adapter-name="activemq-rar-5.4.2.rar"/>
<bean-instance-pool-ref pool-name="mdb-strict-max-pool" />
</mdb>
</subsystem>
I keep receiving the following message:
JBAS014775: New missing/unsatisfied dependencies:
service jboss.ra."activemq-rar-5.4.2" (missing) dependents: [service jboss.deployment.subunit."JBossTest.ear"."EJB.jar".component.MDB.CREATE]
Therefore what is the root cause of the problem? Did I miss something?
Your help is kindly appreciated.
Thank You.