<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
EJB3/JPA 2.0 support for AS7
</h3>
<span style="margin-bottom: 10px;">
new comment by <a href="http://community.jboss.org/people/smarlow">Scott Marlow</a> <a href="http://community.jboss.org/docs/DOC-16271#comment-6055">View all comments on this document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>A quick update on selecting different persistence providers.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>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" </span><a class="jive-link-external-small" href="http://pastie.org/1777575" target="_blank">http://pastie.org/1777575</a><span>.  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 </span><a class="jive-link-external-small" href="https://github.com/scottmarlow/jboss-as/tree/multipleproviders_2" target="_blank">https://github.com/scottmarlow/jboss-as/tree/multipleproviders_2</a><span>.  </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>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.  </span><a class="jive-link-external-small" href="http://pastebin.com/dCvxvdG1" target="_blank">http://pastebin.com/dCvxvdG1</a><span> 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).  </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Applications should be fine with packaging a persistence provider and using it natively (one of the advantages of the AS7 modular classloading).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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.  </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>If you want to contribute to other areas of JPA (or AS7), find me on On IRC - irc://irc.freenode.org/jboss-as7 or </span><a class="jive-link-external-small" href="https://webchat.freenode.net/?channels=jboss-as7" target="_blank">https://webchat.freenode.net/?channels=jboss-as7</a><span>.</span></p></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>