openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] OpenJPA > Integration
Date Fri, 04 Jun 2010 15:30:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/5/_/styles/combined.css?spaceKey=openjpa&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="http://cwiki.apache.org/confluence/display/openjpa/Integration">Integration</a></h2>
    <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~techhusky">Jeremy
Bauer</a>
    </h4>
        <div id="versionComment">
        <b>Comment:</b>
        Added link to the WebSphere V7 feature pack for JPA 2.0<br />
    </div>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >See [IBM WebSphere Developer Technical
Journal: Leveraging OpenJPA with WebSphere Application Server V6.1|http://www-128.ibm.com/developerworks/websphere/techjournal/0612_barcia/0612_barcia.html].
<br>Also, WebSphere Application Server V6.1 can download and install the [EJB3 Feature
Pack|http://www-01.ibm.com/support/docview.wss?rs=177&amp;uid=swg21287579], which includes
OpenJPA 1.0.x. <br></td></tr>
            <tr><td class="diff-unchanged" >[WebSphere Application Server V7.0|http://www.ibm.com/developerworks/downloads/ws/was/]
includes OpenJPA 1.2.x and you can simply deploy an enterprise archive, web archive, or EJB-JAR
that contains a persistence unit.   <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">The
[WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API
2.0|http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/] includes OpenJPA
2.0 and provides the JPA 2.0 programming model within Java EE5 and OSGi applications. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. Integrating with IBM
WebSphere Application Server Community Edition: <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        

<h2><a name="Integration-RuntimeDependencies"></a>Runtime Dependencies</h2>

<p>The binary release download of OpenJPA includes all of the code needed to run in
a stand-alone Java SE JVM or within a Java EE application server.<br/>
See <a href="/confluence/display/openjpa/Build+and+Runtime+Dependencies" title="Build and
Runtime Dependencies">Build and Runtime Dependencies</a> for details on the required
Java levels and runtime artifacts.</p>


<h2><a name="Integration-IntegratingwithApacheGeronimo%3A"></a>Integrating
with Apache Geronimo:</h2>

<p><a href="http://geronimo.apache.org/" class="external-link" rel="nofollow">Apache
Geronimo</a> V2.0.2 through 2.1.3 include OpenJPA 1.0.x and you can simply deploy an
enterprise archive, web archive, or EJB-JAR that contains a persistence unit.<br/>
Apache Geronimo V2.1.4 includes OpenJPA 1.2.x and you can simply deploy an enterprise archive,
web archive, or EJB-JAR that contains a persistence unit.</p>

<h2><a name="Integration-IntegratingwithGlassFish%3A"></a>Integrating with
GlassFish:</h2>

<p>Since <a href="http://glassfish.dev.java.net" class="external-link" rel="nofollow">GlassFish</a>
implements the Java Persistence API 1.0 SPI, it is very easy to use OpenJPA in Glassfish.
See <a href="http://weblogs.java.net/blog/ss141213/archive/2006/07/using_openjpa_a.html"
class="external-link" rel="nofollow">Sahoo's blog </a> for further details.</p>

<h2><a name="Integration-IntegratingwithSunJavaSystemApplicationServer9.x%3A"></a>Integrating
with Sun Java System Application Server 9.x:</h2>

<p>Since Sun Java System Application Server is based on code from the <a href="http://glassfish.dev.java.net"
class="external-link" rel="nofollow">GlassFish project</a>, the instructions to use
OpenJPA in GlassFish and Sun Java System Application Server remain the same. </p>

<h2><a name="Integration-IntegratingwithIBMWebSphereApplicationServer%3A"></a>Integrating
with IBM WebSphere Application Server:</h2>

<p>See <a href="http://www-128.ibm.com/developerworks/websphere/techjournal/0612_barcia/0612_barcia.html"
class="external-link" rel="nofollow">IBM WebSphere Developer Technical Journal: Leveraging
OpenJPA with WebSphere Application Server V6.1</a>.<br/>
Also, WebSphere Application Server V6.1 can download and install the <a href="http://www-01.ibm.com/support/docview.wss?rs=177&amp;uid=swg21287579"
class="external-link" rel="nofollow">EJB3 Feature Pack</a>, which includes OpenJPA
1.0.x.<br/>
<a href="http://www.ibm.com/developerworks/downloads/ws/was/" class="external-link" rel="nofollow">WebSphere
Application Server V7.0</a> includes OpenJPA 1.2.x and you can simply deploy an enterprise
archive, web archive, or EJB-JAR that contains a persistence unit.  <br/>
The <a href="http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/"
class="external-link" rel="nofollow">WebSphere Application Server V7 Feature Pack for OSGi
Applications and Java Persistence API 2.0</a> includes OpenJPA 2.0 and provides the
JPA 2.0 programming model within Java EE5 and OSGi applications.</p>

<h2><a name="Integration-IntegratingwithIBMWebSphereApplicationServerCommunityEdition%3A"></a>Integrating
with IBM WebSphere Application Server Community Edition:</h2>

<p><a href="http://www.ibm.com/developerworks/websphere/zones/was/wasce.html" class="external-link"
rel="nofollow">WebSphere Application Server Community Edition</a> V2.0.0.2 through
2.1.1.1 include OpenJPA 1.0.x and you can simply deploy an enterprise archive, web archive,
or EJB-JAR that contains a persistence unit.<br/>
WebSphere Application Server Community Edition V2.1.x releases after V2.1.1.1 will include
OpenJPA 1.2.x and you can simply deploy an enterprise archive, web archive, or EJB-JAR that
contains a persistence unit.</p>


<h2><a name="Integration-IntegratingwithJOnASApplicationServerV4.X%28J2EE1.4%2FEJB2.1Container%29%3A"></a>Integrating
with JOnAS Application Server V 4.X (J2EE 1.4 / EJB2.1 Container):</h2>

<p>OpenJPA can successfully be integrated with the JOnAS 4.x Application server family.
I succeeded in configuring OpenJPA to use managed JTA transactions of JOnAS, which means that
you can use OpenJPA in parallel to EJB 2.1 CMP/BMP  Entity Beans within the SAME container
managed transactions of your JOnAS Application Server. See <a href="http://hanzz.zapto.org/index.php?option=com_content&amp;task=view&amp;id=105&amp;Itemid=31"
class="external-link" rel="nofollow">Hans Prueller's blog entry</a> for further details.</p>

<h2><a name="Integration-IntegratingwithBEAWeblogicServer10%3A"></a>Integrating
with BEA Weblogic Server 10:</h2>

<p><a href="http://www.bea.com/framework.jsp?CNT=index.htm&amp;FP=/content/products/weblogic/"
class="external-link" rel="nofollow">BEA WebLogic Server 10</a> includes OpenJPA.
To use OpenJPA in a WebLogic Server environment, you can simply deploy an enterprise archive,
web archive, or EJB-JAR that contains a persistence unit. The default persistence provider
in WebLogic Server is OpenJPA + Kodo, so you can either leave the &lt;provider&gt;
element out of your persistence.xml file, or set it to org.apache.openjpa.persistence.PersistenceProviderImpl.</p>

<p><a href="http://www.bea.com/framework.jsp?CNT=index.htm&amp;FP=/content/products/weblogic/kodo/"
class="external-link" rel="nofollow">BEA Kodo</a> is built on top of OpenJPA, and
so includes the OpenJPA jars.</p>

<h2><a name="Integration-IntegratingwithSpring%3A"></a>Integrating with
Spring:</h2>

<p>It is not necessary to configure a Spring loadTimeWeaver when using OpenJPA build
time enhancement. The following warning message will be logged by OpenJPA when creating an
EntityManagerFactory but it can be safely ignored.</p>

<blockquote><p>WARN   [main] openjpa.Runtime - An error occurred while registering
a ClassTransformer with PersistenceUnitInfo: name 'PuName', root URL [file:/.../]. The error
has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class
transformation will not be available.</p></blockquote>

<p>Please see the <a href="http://static.springframework.org/spring/docs/2.0.x/reference/orm.html#orm-jpa-setup-lcemfb"
class="external-link" rel="nofollow">Spring documentation</a> for more information.</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="http://cwiki.apache.org/confluence/display/openjpa/Integration">View
Online</a>
        |
        <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=23562&revisedVersion=19&originalVersion=18">View
Changes</a>
                |
        <a href="http://cwiki.apache.org/confluence/display/openjpa/Integration?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message