Jesper,
that is great - thank you very much. I was able to deploy an inbound connector on JBoss 7.1, but whe I try to connect a MDB with it, I get an error message I'm not sure of understanding.
The connector is deployed as part of an EAR with the name DemoInboundConnector-rar-1.0.0-SNAPSHOT.rar. The same EAR contains a web application with the following MDB:
@MessageDriven(messageListenerInterface = DemoInboundMessageListener.class)
public class TestMdb implements DemoInboundMessageListener
{
@Override
public void onMessage(String msg)
{
System.out.println(msg);
}
}
I tried to connect it to the adapter with WEB-INF/jboss-ejb3.xml:
<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>TestMdb</jee:ejb-name>
<mdb:resource-adapter-name>DemoInboundConnector-rar-1.0.0-SNAPSHOT.rar</mdb:resource-adapter-name>
</mdb:resource-adapter-binding>
</jee:assembly-descriptor>
</jboss>
When deploying the EAR I get the error message:
09:13:01,819 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"DemoInboundConnector-ear.ear\".\"DemoInboundConnector-test-1.0.0-SNAPSHOT.war\".component.TestMdb.CREATEjboss.ra.\"DemoInboundConnector-rar-1.0.0-SNAPSHOT\"Missing[jboss.deployment.subunit.\"DemoInboundConnector-ear.ear\".\"DemoInboundConnector-test-1.0.0-SNAPSHOT.war\".component.TestMdb.CREATEjboss.ra.\"DemoInboundConnector-rar-1.0.0-SNAPSHOT\"]"]}}}
I tried with <mdb:resource-adapter-name>../DemoInboundConnector-rar-1.0.0-SNAPSHOT.rar</mdb:resource-adapter-name> without success.
What am I missing?
Thanks
Dirk