How do you Configure a MDB to use a Custom JCA Connector?
firepod Oct 22, 2014 3:44 PMI'm trying to tie a MDB to a custom JCA Connector. In specific this example: chtz/jso.camp2014.simplistic.rabbitMQ.jca.poc · GitHub
But when I deploy it to Wildfly 8.1 (running with standalone-full.xml), I get the following error:
14:35:50,333 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "rabbitMqJcaSampleEar-1.0-SNAPSHOT.ear")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"rabbitMqJcaSampleEar-1.0-SNAPSHOT.ear\".\"rabbitMqJcaSampleEjb-1.0-SNAPSHOT.jar\".component.RabbitDemoMDB.CREATE is missing [jboss.ra.\"rabbitMqJcaSampleEar.ear#rabbitMqRar-1.0-SNAPSHOT\"]"]}
I suspect that the configuration problem lies in the jboss-ejb3.xml <mdb:resource-adapter-binding> element:
<?xml version="1.0" encoding="UTF-8"?> <jboss xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:jee="http://java.sun.com/xml/ns/javaee" xmlns:mdb="urn:resource-adapter-binding" xmlns:security="urn:security"> <jee:assembly-descriptor> <mdb:resource-adapter-binding> <jee:ejb-name>RabbitDemoMDB</jee:ejb-name> <mdb:resource-adapter-name>rabbitMqJcaSampleEar.ear#rabbitMqRar-1.0-SNAPSHOT.rar</mdb:resource-adapter-name> </mdb:resource-adapter-binding> </jee:assembly-descriptor> </jboss>
What should this value be for a RAR that is include in an EAR that has this application.xml?
<?xml version="1.0" encoding="UTF-8"?> <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6"> <display-name>rabbitMqJcaSampleEar</display-name> <module> <connector>rabbitMqRar-1.0-SNAPSHOT.rar</connector> </module> <module> <ejb>rabbitMqJcaSampleEjb-1.0-SNAPSHOT.jar</ejb> </module> <library-directory>lib</library-directory> </application>