java - MDB is not consuming Messages from Queue on standalone Hornetq -
i using wildfly-8.0.0.final , hornetq-2.4.0.final.
i'm trying read messages queues on hornetq server using mdb. mdb running on wildfly.
first removed messaging configuration standalone.xml(wildfly).in hornetq-2.4.0.final, added queue in hornetq-jms.xml.
in mdb, 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 started both servers(wildfly,hornetq), hornetq server started smoothly in wildfly while deploying mdb(m2meventdistributor), threw error as,
jbas014613: operation ("deploy") failed - address: ([("deployment" => "m2meventdistributor.jar")]) - failure description: {"jbas014771: services missing/unavailable dependencies" => ["jboss.deployment.unit.\"m2meventdistributor.jar\".component.m2meventdistributormdb.create 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 issue hornet-ra adapter, searched in internet issue , referred links , followed instructions in them, hard luck, nothing helped me.
everyone in net, forums, blogs, , communities saying deploying hornetq-ra.rar , changing ra.xml file in rar file. in wildfly didn't find clue hornet-ra.rar , ra.xml. found hornet-ra-2.4.1.final.jar in wildfly modules added jar mdb classpath , mentioned in jboss-deployment-structure.xml file. i'm getting same error.
and followed link https://community.jboss.org/message/756775 , , tried steps given andy taylor except things regarding hornet-ra.rar , ra.xml file, because don't know have find them.
then mdb got deployed not consuming messages queue. in log found 1 line,
[org.hornetq.ra] (default-threads - 1) hq151000: awaiting topic/queue creation queue/myqueue
so, questions are,
1) how can use hornetq-ra adapter consume messages queue on standalone hornetq server?
2) can find hornet-ra.rar , ra.xml file in wildfly-8.0.0.final , how can deploy , use it?
3) i'm doing wrong , should work done?
if need information , files i'll provide immediately... can me rid problem... thank in advance..
Comments
Post a Comment