[jboss-dev-forums] [JBoss AS7 Development] - EJB3/JPA 2.0 support for AS7

Scott Marlow do-not-reply at jboss.com
Sun Apr 10 01:04:57 EDT 2011


Scott Marlow [http://community.jboss.org/people/smarlow] commented on the document

"EJB3/JPA 2.0 support for AS7"

To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16271#comment-6055

--------------------------------------------------
A quick update on selecting different persistence providers.

I gave openjpa a quick spin last weekend (as a top level deployment), using their "all" jar (nice having everything needed in one jar).  It was an interesting first attempt that got these errors when creating the "container entity manager factory"  http://pastie.org/1777575 http://pastie.org/1777575.  I started a branch for this effort that I will move more of my experiental code to soon.  If anyone wants to hack on these types of problems, the branch is  https://github.com/scottmarlow/jboss-as/tree/multipleproviders_2 https://github.com/scottmarlow/jboss-as/tree/multipleproviders_2.  

Also in the above branch, is some experimental code to do some potentially evil bridging of the AS7 JPA container/integration layer and a persistence provider that is bundled with a deployment (e.g. in the ear lib).  One of the challenges is coming up with integration classes (for bridging the persistence provider with AS7) that don't pull in jars that could conflict with the application deployment.   http://pastebin.com/dCvxvdG1 http://pastebin.com/dCvxvdG1 is a CCE caused by class org.jboss.as.jpa.hibernate.HibernateAnnotationScanner being loaded by a different classloader than the target class org.hibernate.ejb.packaging.Scanner (I was trying to test a bug fix I had just made in Hibernate 4.0).  For this to work, I think we need enough integration code to accompany the persistence provider (rather than relying on AS7 jars directly).  

Applications should be fine with packaging a persistence provider and using it natively (one of the advantages of the AS7 modular classloading).

If you want to help out in other areas, testing is pretty important.  Already, I have had a few people reporting issues based on their testing efforts.  

If you want to contribute to other areas of JPA (or AS7), find me on On IRC - irc://irc.freenode.org/jboss-as7 or  https://webchat.freenode.net/?channels=jboss-as7 https://webchat.freenode.net/?channels=jboss-as7.
--------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110410/1b7d0ca1/attachment.html 


More information about the jboss-dev-forums mailing list