Need help deploying ear with a resource adapter in it
tbronzan Feb 19, 2014 1:13 PMI am having difficulties getting a resource adapter working. The resource adapter is inside an EAR file. I've tried looking around for examples of resource adapters but nothing seems to be working. I'm migrating the application from glassfish to wildfly and it works in glassfish so there's something I'm missing in the configuration
{"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"pbx.ear\".\"ejb-pbx.jar\".component.PbxRecordListenerEJB.CREATE is missing [jboss.ra.pbx#ra]"]}
standalone.xml
<resource-adapter id="pbx#ra"> <archive>pbx#ra.rar</archive> <transaction-support>NoTransaction</transaction-support> <connection-definitions> <connection-definition class-name="com.foo.ra.api.CollectorConnectionFactory" jndi-name="java:jboss/pbxra/CollectorConnectionFactory" enabled="true" pool-name="foora"> <security> <application/> </security> <validation> <background-validation>false</background-validation> </validation> </connection-definition> </connection-definitions> </resource-adapter>
ra.xml (deployment descriptor in ra project)
<?xml version="1.0" encoding="UTF-8"?> <connector id="Connector_ID" version="1.5" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"> <description>Experimental foo Collector adapter</description> <display-name>foo-ra</display-name> <vendor-name>foo</vendor-name> <eis-type>PBX data</eis-type> <resourceadapter-version>0.1</resourceadapter-version> <resourceadapter> <resourceadapter-class>com.foo.ra.ResourceAdapterImpl</resourceadapter-class> <outbound-resourceadapter> <connection-definition> <managedconnectionfactory-class>com.foo.ra.outbound.ManagedConnectionFactoryImpl</managedconnectionfactory-class> <connectionfactory-interface>com.foo.ra.api.CollectorConnectionFactory</connectionfactory-interface> <connectionfactory-impl-class>com.foo.ra.outbound.CollectorConnectionFactoryImpl</connectionfactory-impl-class> <connection-interface>com.foo.ra.api.CollectorConnection</connection-interface> <connection-impl-class>com.foo.ra.outbound.CollectorConnectionImpl</connection-impl-class> </connection-definition> <transaction-support>NoTransaction</transaction-support> <reauthentication-support>false</reauthentication-support> </outbound-resourceadapter> <inbound-resourceadapter> <messageadapter> <messagelistener> <messagelistener-type>com.foo.ra.api.PbxRecordListener</messagelistener-type> <activationspec> <activationspec-class>com.foo.ra.inbound.ActivationSpecImpl</activationspec-class> </activationspec> </messagelistener> </messageadapter> </inbound-resourceadapter> </resourceadapter> </connector>
mdb
@MessageDriven(messageListenerInterface = PbxRecordListener.class) @ResourceAdapter(value = "pbx#ra.rar") public class PbxRecordListenerEJB implements PbxRecordListener { ... }