I'm working with a JCA Resource adapter which I have sucessfully deployed on JBoss 6, but am struggling to find how to create resources for it on JBoss 7.

On JBoss 6 I dropped a resourceAdapter-ds.xml file into the deploy directory along with the resource adaptrer .rar file and the resources it defined were created (I could see log information that it was creating the resources).

On JBoss 7 nothing seems to happen when I drop the -ds.xml file in the deployments directory.

I've tried looking through the documentation, but can't find anything much on deploying resource adapters for v7. Can anyone point me in the right direction?

I tried putting a -ra.xml file in the deployments directory along with the RA, but that didn't seem to do anything at all, so I had a bash at editing the standalone.xml file to put the content directly in there. This seemed to do a lot more. Perhaps the documentation could be updated to point this out as an option.

So, now when the RA tries to deploy it's getting on to trying to create resources, but is failing with the following error.

The subsystem definition I'm using is at the bottom. Any thoughts?

I've tried with/without the use-java-context flag

I've tried with/without the java: at the start of the jndi-name

I'm not even sure if it's these elements that are causing the problem :-)

10:11:36,343 WARN [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-2) IJ020004: Only one connection definition found with a mismatch in class-name: javax.jms.ConnectionFactory

OK, I've tried that, and a few others, and seem to be getting the same error with all of them

jndi-name="java:/IVTCF"

jndi-name="java:jboss"

jndi-name="java:jboss/IVTCF"

jndi-name="java:jboss/jms/ivt/IVTCF"

jndi-name="java:/eis/AcmeConnectionFactory"

Between changes I stop the server, make the change, then restart, then delete the '.failed' file under deployments to get it to attempt a deployment. (I wasn't sure if changes to standaline.xml would be dynamic, so erred on the safe side)

Can I double check what you mean by MCF? Managed Connection Factory?

I'm a bit surprised that someone configuring a connection factory needs to define the implementation class rather than just the Interface class, as the interface and implementation are mapped together in the ra.xml of the resource adapter.

So for the time being one should just have to replace the ironJacamar implementation in AS 7 final with the 1.0.2 Final version in order to get a better error message, or should the configuration above be valid in that case?