Again: JBoss AS 7.1.1 and ActiveMQ
attermr Jul 17, 2012 3:47 AMHi,
I am trying to deploy (as many others before in this forum) to deploy activemq-rar on JBoss AS 7.1.1. Final and get an MDB working.
What is working:
Deploying OOTB activemq-rar-5.6.0.rar
JBoss AS 7.1.1 says: deployed
09:37:20,713 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "activemq-rar-5.6.0.rar"
It also shows up as deployed and enabled inside JBoss Console
Adding an MDB to the running server:
@MessageDriven(name = "MDB", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "test1"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
})
@ResourceAdapter("activemq-rar-5.6.0.rar")
public class MDBDemo implements MessageListener {
@Override
public void onMessage(Message message) {
System.out.println("received message !!!!");
System.out.println(message);
}
}
Results in:
JBAS014775: New missing/unsatisfied dependencies: service jboss.ra."activemq-rar-5.6.0" (missing) dependents: [service jboss.deployment.unit."jboss-mdb-demo.war".component.MDB.CREATE]
Starting server with (MDB + RA) to be deployed results in both deployments to be rolled back
09:43:11,055 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "activemq-rar-5.6.0.rar"
09:43:11,060 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "jboss-mdb-demo.war"
[...]
09:43:15,736 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "jboss-mdb-demo.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"jboss-mdb-demo.war\".component.MDB.CREATEjboss.ra.\"activemq-rar-5.6.0\"Missing[jboss.deployment.unit.\"jboss-mdb-demo.war\".component.MDB.CREATEjboss.ra.\"activemq-rar-5.6.0\"]"]}
09:43:15,773 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "activemq-rar-5.6.0.rar" was rolled back with no failure message
I might understand rollback of the MDB, but not that of the rar
Questions:
1) How do I correctly reference the activemq-ra.rar in the MDB?
2) Why is the RAR rolled back in the second case
3) Has anyone managed to get activemq-ra connector correctly deployed in JBoss AS 7.1.1.Final and can provide a wrap up? :-)