I am using wildfly.8.0.0.Final and hornetq-2.4.0.Final.
I am trying to read messages from queues on a hornetq server using MDB. my mdb runs on wildfly.
First, I removed the entire messaging configuration from standalone.xml (wildfly). In hornetq-2.4.0.Final, I added a turn to hornetq-jms.xml.
In my MDB I gave
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/MyQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "connectorClassName", propertyValue = "org.hornetq.core.remoting.impl.netty.NettyConnectorFactory"),
@ActivationConfigProperty(propertyName = "connectionParameters", propertyValue = "host=localhost;port=5445")})
@ResourceAdapter("hornetq-ra.rar")
Then I started both servers (wildfly, hornetq), the hornetq server started smoothly, but in wildfly when deploying MDB (M2MEventDistributor), it ran an error like
JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "M2MEventDistributor.jar")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"M2MEventDistributor.jar\".component.M2MEventDistributorMDB.CREATE is missing [jboss.ra.hornetq-ra]"]}
and
2014-04-04 13:32:29,042 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1)JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.ra.hornetq-ra (missing) dependents: [service jboss.deployment.unit."M2MEventDistributor.jar".component.M2MEventDistributorMDB.CREATE]
I found that the problem is with the hornet-ra adapter. I searched the Internet for this problem and linked to the links and followed the instructions in them, but I was lucky, nothing helped me.
, , hornetq-ra.rar ra.xml rar . wildfly hornet-ra.rar ra.xml. hornet-ra-2.4.1.Final.jar wildfly, jar MDB, jboss-deployment-structure.xml. .
https://community.jboss.org/message/756775 , byy taylor, , hornet-ra.rar ra.xml, , .
MDB , . ,
[org.hornetq.ra] (default-threads - 1) HQ151000: awaiting topic/queue creation queue/MyQueue
, :
1) hornetq-ra hornetq?
2) hornet-ra.rar ra.xml wildfly-8.0.0.Final ?
3) , ?
- , ...
- ... .