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:56:28 UTC

svn commit: r1291549 - /openejb/site/trunk/content/embedded-configuration.mdtext

Author: dblevins
Date: Tue Feb 21 01:56:28 2012
New Revision: 1291549

URL: http://svn.apache.org/viewvc?rev=1291549&view=rev
Log:
added a tiny bit of info on the Embeddable EJBContainer API

Modified:
    openejb/site/trunk/content/embedded-configuration.mdtext

Modified: openejb/site/trunk/content/embedded-configuration.mdtext
URL: http://svn.apache.org/viewvc/openejb/site/trunk/content/embedded-configuration.mdtext?rev=1291549&r1=1291548&r2=1291549&view=diff
==============================================================================
--- openejb/site/trunk/content/embedded-configuration.mdtext (original)
+++ openejb/site/trunk/content/embedded-configuration.mdtext Tue Feb 21 01:56:28 2012
@@ -3,7 +3,8 @@ Title: Embedded Configuration
 #  Defaults, Overrides and Order
 
 When booting up OpenEJB for testing via the `LocalInitialContextFactory`
-there is quite a bit of flexibility to how things are configured.
+or the newer `EJBContainer.createEJBContainer()` API part of EJB 3.1 there
+is quite a bit of flexibility to how things are configured.
 
 OpenEJB will function fine with no configuration at all and will happily
 create things as needed and select defaults for everything.  So in a real
@@ -11,12 +12,26 @@ sense configuration is all about overrid
 several places to put your overrides and an a specific order how they are
 applied.  Here they are in order of preference; 1 = highest, 5 = lowest.
 
+{row
+{span8
+**InitialContext**
+
 1. InitialContext properties
 1. jndi.properties from the classpath
 1. System properties
 1. openejb.xml declarations/properties
-1. service-jar.xml declarations/properties (internal concept, no need to
-worry about it)
+1. service-jar.xml declarations/properties (internal concept)
+}
+
+{span8
+**EJBContainer API**
+1. EJBContainer.createEJBContainer(Map) entries
+1. System properties
+1. openejb.xml declarations/properties
+1. service-jar.xml declarations/properties (internal concept)
+
+}
+}
 
 It opens up some interesting possibilities in how you configure your
 environment.  You could do 100% of your configuration in your test case via