[jboss-user] [IronJacamar] - Re: Is there a working sample JCA 1.6 connector outbound and inbound

Dirk Weil do-not-reply at jboss.com
Sun Mar 11 04:33:01 EDT 2012


Dirk Weil [https://community.jboss.org/people/dweil] created the discussion

"Re: Is there a working sample JCA 1.6 connector outbound and inbound"

To view the discussion, visit: https://community.jboss.org/message/723033#723033

--------------------------------------------------------------
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 http://www.jboss.com/xml/ns/javaee"
    xmlns:jee=" http://java.sun.com/xml/ns/javaee 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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/723033#723033]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120311/418dec2c/attachment-0001.html 


More information about the jboss-user mailing list