You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2012/02/21 02:58:25 UTC
svn commit: r1291550 -
/openejb/site/trunk/content/configuring-persistenceunits-in-tests.mdtext
Author: dblevins
Date: Tue Feb 21 01:58:25 2012
New Revision: 1291550
URL: http://svn.apache.org/viewvc?rev=1291550&view=rev
Log:
fixed formatting
Modified:
openejb/site/trunk/content/configuring-persistenceunits-in-tests.mdtext
Modified: openejb/site/trunk/content/configuring-persistenceunits-in-tests.mdtext
URL: http://svn.apache.org/viewvc/openejb/site/trunk/content/configuring-persistenceunits-in-tests.mdtext?rev=1291550&r1=1291549&r2=1291550&view=diff
==============================================================================
--- openejb/site/trunk/content/configuring-persistenceunits-in-tests.mdtext (original)
+++ openejb/site/trunk/content/configuring-persistenceunits-in-tests.mdtext Tue Feb 21 01:58:25 2012
@@ -6,7 +6,7 @@ The most common situation in EJB related
alter your persistence.xml for a test environment.
<a name="ConfiguringPersistenceUnitsinTests-Overridingthe<jta-data-source>and<non-jta-data-source>"></a>
-## Overriding the <jta-data-source> and <non-jta-data-source>
+## Overriding the $lt;jta-data-source> and $lt;non-jta-data-source>
OpenEJB will automatically use the DataSources you have setup in your test
environment, we're pretty good at guessing the right DataSources you intend
@@ -20,7 +20,7 @@ environment and helps eliminate the need
if we had to adjust the DataSources of your persistence.xml.
<a name="ConfiguringPersistenceUnitsinTests-Overridingthepersistence-unit<properties>"></a>
-## Overriding the persistence-unit <properties>
+## Overriding the persistence-unit $lt;properties>
You can override any property in your test setup via either system
properties or the initial context properties. The format is:
@@ -56,10 +56,10 @@ that let us know -- it hasn't really com
The overriding order is as follows: 1 = highest, 4 = lowest.
- # InitialContext properties
- # jndi.properties from the classpath
- # System properties
- # persistence.xml properties
+1. InitialContext properties
+1. jndi.properties from the classpath
+1. System properties
+1. persistence.xml properties
By default there are no overrides in 1-3, so #4 is the only source of
information.