ModeShape/modeshape — pull request #812 by albertdev (2013-05-10 09:15:33+00:00)
Title: Fix JCA resource adapter

I was trying to get the Modeshape RAR deployed on a JBoss 5 EAP server, but it seems that the RAR was not correct according to the JEE 1.5 spec.

This pull requests changes the ra.xml to have valid class names, and the configuration is done on the ManagedConnectionFactory instead of the Resource Adapter. This should in theory allow to deploy multiple modeshape repositories with multiple configuration files, but I didn't test this. The test case was also modified because the configuration is obviously injected into another class.

For the record: I got it deployed in JBoss 5 by packaging the RAR, datasource and client WAR into an EAR file and using some voodo classloading magic.

Here's the datasource:
````

/jcr/datastore

modeshape-datastore.ear#modeshape-jca-3.3-SNAPSHOT.rar
javax.jcr.Repository
file:/d:/Temp/modeshapecfg.json
9

````
Here's the jboss-classloading.xml (based on support ticket https://access.redhat.com/site/solutions/236303 ) :
````

````