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><persistence xmlns="http://java.sun.com/xml/ns/persistence"
version="1.0">
@@ -148,8 +148,7 @@
<class>org.superbiz.injection.jpa.Movie</class>
<properties>
- <property name="openjpa.jdbc.SynchronizeMappings"
-value="buildSchema(ForeignKeys=true)"/>
+ <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
</properties>
</persistence-unit>
</persistence>
@@ -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>
|