I've packaged Rich's VFS integration code, some JBoss loging integration code, and a platform adapter needed for older versions of EclipseLink into a a simple as7-eclipselink-integration library that can be included directly in projects or bundled in the EclipseLink module installed in AS7.
The library build produces a ready-to-install AS7 module for EclipseLink with the integration helper code pre-installed.
It should simplify doing the integration work on a project.
To use, just:
git clone git://github.com/ringerc/as7-eclipselink-integration.git cd as7-eclipselink-integration mvn -DskipTests=true clean install
then either install the jboss as 7 module for EclipseLink that's been produced at
target/as7moduleor add the dependency shown in the README to your project.
All the tests pass fine, but only when the as7module is installed and a system property is set (see README), which is why you should skip them when simply building the package.
Feedback would be welcome. Most of the code isn't mine but all the packaging and integration is, so there's plenty of room for me to have added bugs. Credit goes to Rich DiCroce, all bugs are probably mine.
Please also keep an eye on the EclipseLink / JBoss AS 7 integration bug in Eclipse bugzilla, and link to issues related to AS7 + EclipseLink there.