openejb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r814028 - in /websites/staging/openejb/trunk: cgi-bin/ content/ content/openjpa.html
Date Mon, 23 Apr 2012 02:29:54 GMT
Author: buildbot
Date: Mon Apr 23 02:29:54 2012
New Revision: 814028

Log:
Staging update by buildbot for openejb

Modified:
    websites/staging/openejb/trunk/cgi-bin/   (props changed)
    websites/staging/openejb/trunk/content/   (props changed)
    websites/staging/openejb/trunk/content/openjpa.html

Propchange: websites/staging/openejb/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Apr 23 02:29:54 2012
@@ -1 +1 @@
-1327433
+1329031

Propchange: websites/staging/openejb/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Apr 23 02:29:54 2012
@@ -1 +1 @@
-1327433
+1329031

Modified: websites/staging/openejb/trunk/content/openjpa.html
==============================================================================
--- websites/staging/openejb/trunk/content/openjpa.html (original)
+++ websites/staging/openejb/trunk/content/openjpa.html Mon Apr 23 02:29:54 2012
@@ -138,7 +138,7 @@
 
 <p>OpenJPA is bundled with OpenEJB as the default persistence provider.</p>
 
-<p>An example of  working persistence.xml for OpenJPA:</p>
+<p>An example of working <code>persistence.xml</code> for OpenJPA:</p>
 
 <pre><code>&lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"
version="1.0"&gt;
 
@@ -148,8 +148,7 @@
     &lt;class&gt;org.superbiz.injection.jpa.Movie&lt;/class&gt;
 
     &lt;properties&gt;
-      &lt;property name="openjpa.jdbc.SynchronizeMappings"
-value="buildSchema(ForeignKeys=true)"/&gt;
+      &lt;property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/&gt;
     &lt;/properties&gt;
   &lt;/persistence-unit&gt;
 &lt;/persistence&gt;
@@ -246,13 +245,12 @@ unless explicitly set otherwise in the b
 
 <h3>Solutions</h3>
 
-<p>You can either:
-1. Change your bean or it's method to use
-TransactionAttributeType.NOT_REQUIRED or TransactionAttributeType.NEVER
-which will guarantee it will not be invoked in a JTA transaction.
-1. Change your persistence.xml so the persistence-unit uses
-transaction-type="TRANSACTION" making it capable of participating in a JTA
-transaction.</p>
+<p>You can either:</p>
+
+<ol>
+<li>Change your bean or it's method to use <code>TransactionAttributeType.NOT_REQUIRED</code>
or <code>TransactionAttributeType.NEVER</code> which will guarantee it will not
be invoked in a JTA transaction.</li>
+<li>Change your persistence.xml so the persistence-unit uses <code>transaction-type="TRANSACTION"</code>
making it capable of participating in a JTA transaction.</li>
+</ol>
 
 
 



Mime
View raw message