You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by bu...@apache.org on 2011/07/10 06:35:00 UTC

svn commit: r792464 [9/23] - /websites/staging/openejb/trunk/content/

Added: websites/staging/openejb/trunk/content/faq.html
==============================================================================
--- websites/staging/openejb/trunk/content/faq.html (added)
+++ websites/staging/openejb/trunk/content/faq.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,194 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>FAQ</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          <p><a name="FAQ-&nbsp;General"></a></p>
+
+<h2>&nbsp;General</h2>
+
+<p>&nbsp;</p>
+
+<p><a name="FAQ-WhatspecversiondoesOpenEJBsupport?"></a></p>
+
+<h3>What spec version does OpenEJB support?</h3>
+
+<p>OpenEJB supports the Enterprise JavaBeans 3.0 specification and previous
+versions 2.1, 2.0 and 1.1.</p>
+
+<p><a name="FAQ-Idon'tplantouseEJBs,sowhywouldIembedOpenEJBintoTomcat."></a></p>
+
+<h3>I don't plan to use EJBs, so why would I embed OpenEJB into Tomcat.</h3>
+
+<p>Adding OpenEJB to Tomcat gives servlets several new Java EE 5 capabilities
+such as JPA, JAX-WS, JMS, J2EE Connectors, transactions, and more as well
+as enhancing the injection features of Tomcat 6 to now support injection of
+JavaEE objects like Topics, Queues, EntityManagers, JMS
+ConnectionFactories, JavaMail Sessions, as well as simpler data types such
+as Dates, Classes, URI, URL, List, Map, Set, Properties, and more.  In the
+case of Tomcat 5.5 which doesn't support dependency injection at all, even
+more is gained.</p>
+
+<p><a name="FAQ-CanIrunOpenEJBwithaJVMforanyvendor?"></a></p>
+
+<h3>Can I run OpenEJB with a JVM for any vendor?</h3>
+
+<p>The Sun, Mac, and IBM vms are regularly tested, however any vm should work.</p>
+
+<p><a name="FAQ-WhichversionofJavaisrequiredtorunOpenEJB?"></a></p>
+
+<h3>Which version of Java is required to run OpenEJB?</h3>
+
+<p>Java versions 5 or 6, aka Java 1.5 or 1.6.</p>
+
+<p><a name="FAQ-DoIneedApacheMaventoworkwithOpenEJB?"></a></p>
+
+<h3>Do I need Apache Maven to work with OpenEJB?</h3>
+
+<p>Definitely not. Most of the examples include both Maven and Ant build
+files.  OpenEJB is usable as a plain library, much like an embedded
+database like Derby, so it is usable in any application regardless if that
+application is run via Maven, Ant, Intellij, Eclipse, NetBeans, JUnit,
+TestNG, etc.</p>
+
+<p>h3. Can I start and stop OpenEJB from an IDE? If yes, which IDE is
+supported by OpenEJB?</p>
+
+<p>The short answer is yes.  The basic approach for all embedding scenarios is
+to 1) add OpenEJB to your classpath, and 2) construct your InitialContext
+using org.apache.openejb.client.LocalInitialContextFactory.  The
+LocalInitialContextFactory will boot OpenEJB in your vm and all ejb
+applications visible in the classpath will be deployed. See
+http://openejb.apache.org/embedding-openejb.html for details on how to
+embed openejb in your application and IDE.  See <a href="openejbx30:application-discovery-via-the-classpath.html">Application discovery via the classpath</a>
+ for various ways to have your applications discovered. </p>
+
+<p>h3.  During embedded testing, how can I externalize all my DataSource
+configuration? </p>
+
+<p>Create an openejb.xml file in any directory that gets added to your test
+classpath. For maven, something that winds up directly under
+"target/classes/" or "target/test-classes/" will work just fine.  Then in
+your test case do this:</p>
+
+<pre><code>   protected void setUp() throws Exception {
+       Properties properties = new Properties();
+       properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
+</code></pre>
+
+<p>"org.apache.openejb.client.LocalInitialContextFactory");</p>
+
+<pre><code>       URL config =
+</code></pre>
+
+<p>this.getClass().getClassLoader().getResource("openejb.xml");
+           properties.setProperty("openejb.configuration",
+config.toExternalForm());</p>
+
+<pre><code>       initialContext = new InitialContext(properties);
+   }
+</code></pre>
+
+<p>The file itself doesn't have to be called "openejb.xml", you could have a
+few different files like that for different testing scenarios each with a
+name that describes the basic setup.</p>
+
+<p><a name="FAQ-Container-ManagedPersistence"></a></p>
+
+<h2>Container-Managed Persistence</h2>
+
+<p><a name="FAQ-WhatenginedoesOpenEJBuseforCMP?"></a></p>
+
+<h3>What engine does OpenEJB use for CMP?</h3>
+
+<p>The CMP engine is written as a layer over JPA with OpenJPA doing the
+persistence work.</p>
+
+<p><a name="FAQ-WhatistheformatfortheCMPmappingfiles?"></a></p>
+
+<h3>What is the format for the CMP mapping files?</h3>
+
+<p>The standard JPA mapping file and annotations are also used for CMP
+mappings.</p>
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/faq_openejb-jar.html.cwiki
==============================================================================
--- websites/staging/openejb/trunk/content/faq_openejb-jar.html.cwiki (added)
+++ websites/staging/openejb/trunk/content/faq_openejb-jar.html.cwiki Sun Jul 10 04:34:53 2011
@@ -0,0 +1 @@
+Need Complete stes to deploy a bean using openejb
\ No newline at end of file

Added: websites/staging/openejb/trunk/content/faq_openejb-jar.html.html
==============================================================================
--- websites/staging/openejb/trunk/content/faq_openejb-jar.html.html (added)
+++ websites/staging/openejb/trunk/content/faq_openejb-jar.html.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>faq_openejb-jar.html</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          <p>Need Complete stes to deploy a bean using openejb</p>
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/features.cwiki
==============================================================================
    (empty)

Added: websites/staging/openejb/trunk/content/features.html
==============================================================================
--- websites/staging/openejb/trunk/content/features.html (added)
+++ websites/staging/openejb/trunk/content/features.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>Features</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/functional-testing-with-openejb,-jetty-and-selenium.cwiki
==============================================================================
--- websites/staging/openejb/trunk/content/functional-testing-with-openejb,-jetty-and-selenium.cwiki (added)
+++ websites/staging/openejb/trunk/content/functional-testing-with-openejb,-jetty-and-selenium.cwiki Sun Jul 10 04:34:53 2011
@@ -0,0 +1,204 @@
+Obviously, OpenEJB is great for unit testing EJBs, but I wondered whether I might also be able to use this embedded functionality to functionally test my application. You can use tools like Selenium, or HtmlUnit to run functional tests as if the user were sat at their browser typing text, and clicking links and buttons. This however means you have to have your app running on your app server, and you need to have consistent test data - otherwise a test might pass on one developers machine, but fail on another. Here's one approach that you could take to completely deploy your webapp within a test, and functionally test it with a tool like Selenium. There's also some sample code demonstrating this, available [here|http://people.apache.org/~jgallimore/PersonApp.zip].
+
+
+h3. Creating an embedded server
+
+I created a class to start my embedded OpenEJB and Jetty instances and configure them to see the EJB and WAR modules of my application:
+
+{noformat}
+public class EmbeddedServer {
+    private static EmbeddedServer instance = new EmbeddedServer();
+    private Server server;
+
+    private EmbeddedServer() {
+        try {
+            // initialize OpenEJB & add some test data
+            Properties properties = new Properties();
+            properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
+            InitialContext ic = new InitialContext(properties);
+            PeopleFacade facade = (PeopleFacade) ic.lookup("PeopleFacadeEJBRemote");
+            new TestFixture(facade).addTestData();
+
+            // setup web app
+            WebAppContext context = new WebAppContext();
+            context.setWar(computeWarPath());
+            InitialContext initialContext = setupJndi(context);
+
+            // start the server
+            context.setServletHandler(new EmbeddedServerServletHandler(initialContext));
+            context.setContextPath("/");
+            server = new Server(9091);
+            server.addHandler(context);
+
+            server.start();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    private InitialContext setupJndi(WebAppContext context) throws NamingException {
+        // setup local JNDI
+        InitialContext initialContext = new InitialContext();
+        WebApp webApp = getWebApp(context);
+        Collection<EjbRef> refs = webApp.getEjbRef();
+        for (EjbRef ref : refs) {
+            String ejbLink = ref.getEjbLink();
+
+            // get enterprise bean info
+            EnterpriseBeanInfo beanInfo = new EJBHelper().getEJBInfo(ejbLink);
+            if (beanInfo.jndiNames != null && beanInfo.jndiNames.size() > 0) {
+                String jndiName = "java:openejb/ejb/" + beanInfo.jndiNames.get(0);
+                initialContext.bind("java:comp/env/" + ref.getEjbRefName(), new LinkRef(jndiName));
+            }
+        }
+        return initialContext;
+    }
+
+    private String computeWarPath() {
+        String currentPath = new File(".").getAbsolutePath();
+        String warPath;
+
+        String[] pathParts = currentPath.split("(\\\\|/)+");
+
+        int webPart = Arrays.asList(pathParts).indexOf("PersonWEB");
+        if (webPart == -1) {
+            warPath = "PersonWEB/src/main/webapp";
+        } else {
+            StringBuffer buffer = new StringBuffer();
+
+            for (int i = 0; i < webPart; i++) {
+                buffer.append(pathParts[i]);
+                buffer.append(File.separator);
+            }
+
+            buffer.append("PersonWEB/src/main/webapp");
+            warPath = buffer.toString();
+        }
+        return warPath;
+    }
+
+    public static EmbeddedServer getInstance() {
+        return instance;
+    }
+
+    public Server getServer() {
+        return server;
+    }
+
+    public static void main(String[] args) {
+        try {
+            EmbeddedServer.getInstance().getServer().join();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    private WebApp getWebApp(WebAppContext context) {
+        WebApp webApp = null;
+
+        try {
+            FileInputStream is = new FileInputStream(new File(context.getWar() + "/WEB-INF/web.xml").getAbsolutePath());
+            webApp = (WebApp) JaxbJavaee.unmarshal(WebApp.class, is);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return webApp;
+    }
+} 
+{noformat}
+
+This class sets up an embedded instance of Jetty, running on port 9091. You'll notice the setupJndi() method. This looks through the ejb-ref entries in web.xml (which we deserialize using the openejb-jee library), and adds relevant LinkRefs to the JNDI tree, so you can lookup beans using the java:comp/env/bean format. I've added a main() method here for convenience, so you can run this straight from an IDE, and record tests using tools like the Selenium Firefox plugin.
+
+h3. Supporting @EJB Dependency injection
+
+In the last code sample, we also set up a custom ServletHandler in Jetty - this is to perform dependency injection. The custom ServletHandler looks like this:
+
+{noformat}
+public class EmbeddedServerServletHandler extends ServletHandler {
+    private InitialContext initialContext;
+
+    public EmbeddedServerServletHandler(InitialContext initialContext) {
+        this.initialContext = initialContext;
+    }
+
+    public Servlet customizeServlet(Servlet servlet) throws Exception {
+        Class<? extends Servlet> servletClass = servlet.getClass();
+        Field[] declaredFields = servletClass.getDeclaredFields();
+
+        for (Field declaredField : declaredFields) {
+            Annotation[] annotations = declaredField.getAnnotations();
+
+            for (Annotation annotation : annotations) {
+                if (EJB.class.equals(annotation.annotationType())) {
+                    // inject into this field
+                    Class<?> fieldType = declaredField.getType();
+                    EnterpriseBeanInfo beanInfo = getBeanFor(fieldType);
+                    if (beanInfo == null) {
+                        continue;
+                    }
+                   
+                    String jndiName = "java:openejb/ejb/" + beanInfo.jndiNames.get(0);
+                    Object o = initialContext.lookup(jndiName);
+
+                    declaredField.setAccessible(true);
+                    declaredField.set(servlet, o);
+                }
+            }
+        }
+
+        return super.customizeServlet(servlet);
+    }
+
+    private EnterpriseBeanInfo getBeanFor(Class<?> fieldType) {
+        return new EJBHelper().getBeanInfo(fieldType);
+    }
+} 
+
+{noformat}
+
+This looks up deployed beans that match the field type, and uses reflection to set the field.
+
+h3. Writing a Functional test
+
+We can now write a functional test. I use a base abstract class to make sure the Embedded server is running, and start Selenium:
+
+{noformat}
+public abstract class FunctionalTestCase extends TestCase {
+    protected DefaultSelenium selenium;
+
+    protected void setUp() throws Exception {
+        super.setUp();
+        EmbeddedServer.getInstance();
+        selenium = new DefaultSelenium("localhost", 4444, "*iexplore", "http://localhost:9091/");
+        selenium.start();
+    }
+
+    protected void tearDown() throws Exception {
+        selenium.stop();
+    }
+}
+{noformat}
+
+and I can then I write a test like this:
+
+{noformat}
+public class AddPersonTest extends FunctionalTestCase {
+    public void testShouldAddAPerson() throws Exception {
+        selenium.open("/People");
+        selenium.type("firstname", "Jonathan");
+        selenium.type("lastname", "Gallimore");
+        selenium.click("//input[@name='add' and @value='Add']");
+        selenium.waitForPageToLoad("30000");
+        selenium.type("filter", "gallimore");
+        selenium.click("submit");
+        selenium.waitForPageToLoad("30000");
+        assertEquals(1, selenium.getXpathCount("//div[@id='people']/ul/li").intValue());
+        assertEquals("Jonathan Gallimore", selenium.getText("//div[@id='people']/ul/li[1]"));
+
+    }
+} 
+{noformat}
+
+h3. Sample code
+
+I've made a sample project which demonstrates this, source is available [here|http://people.apache.org/~jgallimore/PersonApp.zip]. You'll need Maven to build it, and you can build it and run the tests by running 'mvn clean install'. If want to run the tests from your IDE, you'll need to have a Selenium server running, which you can do by running 'mvn selenium:start-server'. 
\ No newline at end of file

Added: websites/staging/openejb/trunk/content/functional-testing-with-openejb,-jetty-and-selenium.html
==============================================================================
--- websites/staging/openejb/trunk/content/functional-testing-with-openejb,-jetty-and-selenium.html (added)
+++ websites/staging/openejb/trunk/content/functional-testing-with-openejb,-jetty-and-selenium.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,362 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>Functional testing with OpenEJB, Jetty and Selenium</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          <p>Obviously, OpenEJB is great for unit testing EJBs, but I wondered whether I
+might also be able to use this embedded functionality to functionally test
+my application. You can use tools like Selenium, or HtmlUnit to run
+functional tests as if the user were sat at their browser typing text, and
+clicking links and buttons. This however means you have to have your app
+running on your app server, and you need to have consistent test data -
+otherwise a test might pass on one developers machine, but fail on another.
+Here's one approach that you could take to completely deploy your webapp
+within a test, and functionally test it with a tool like Selenium. There's
+also some sample code demonstrating this, available <a href="http://people.apache.org/~jgallimore/PersonApp.zip">here</a>
+.</p>
+
+<p><a name="FunctionaltestingwithOpenEJB,JettyandSelenium-Creatinganembeddedserver"></a></p>
+
+<h3>Creating an embedded server</h3>
+
+<p>I created a class to start my embedded OpenEJB and Jetty instances and
+configure them to see the EJB and WAR modules of my application:</p>
+
+<pre><code>public class EmbeddedServer {
+    private static EmbeddedServer instance = new EmbeddedServer();
+    private Server server;
+
+    private EmbeddedServer() {
+    try {
+        // initialize OpenEJB &amp; add some test data
+        Properties properties = new Properties();
+        properties.put(Context.INITIAL_CONTEXT_FACTORY,
+</code></pre>
+
+<p>"org.apache.openejb.client.LocalInitialContextFactory");
+            InitialContext ic = new InitialContext(properties);
+            PeopleFacade facade = (PeopleFacade)
+ic.lookup("PeopleFacadeEJBRemote");
+            new TestFixture(facade).addTestData();</p>
+
+<pre><code>        // setup web app
+        WebAppContext context = new WebAppContext();
+        context.setWar(computeWarPath());
+        InitialContext initialContext = setupJndi(context);
+
+        // start the server
+        context.setServletHandler(new
+</code></pre>
+
+<p>EmbeddedServerServletHandler(initialContext));
+            context.setContextPath("/");
+            server = new Server(9091);
+            server.addHandler(context);</p>
+
+<pre><code>        server.start();
+    } catch (Exception e) {
+        e.printStackTrace();
+    }
+    }
+
+    private InitialContext setupJndi(WebAppContext context) throws
+</code></pre>
+
+<p>NamingException {
+        // setup local JNDI
+        InitialContext initialContext = new InitialContext();
+        WebApp webApp = getWebApp(context);
+        Collection<EjbRef> refs = webApp.getEjbRef();
+        for (EjbRef ref : refs) {
+            String ejbLink = ref.getEjbLink();</p>
+
+<pre><code>        // get enterprise bean info
+        EnterpriseBeanInfo beanInfo = new
+</code></pre>
+
+<p>EJBHelper().getEJBInfo(ejbLink);
+            if (beanInfo.jndiNames != null &amp;&amp; beanInfo.jndiNames.size() >
+0) {
+            String jndiName = "java:openejb/ejb/" +
+beanInfo.jndiNames.get(0);
+            initialContext.bind("java:comp/env/" + ref.getEjbRefName(),
+new LinkRef(jndiName));
+            }
+        }
+        return initialContext;
+        }</p>
+
+<pre><code>    private String computeWarPath() {
+    String currentPath = new File(".").getAbsolutePath();
+    String warPath;
+
+        String[]
+</code></pre>
+
+<p>pathParts = currentPath.split("(\\|/)+");</p>
+
+<pre><code>    int webPart = Arrays.asList(pathParts).indexOf("PersonWEB");
+    if (webPart == -1) {
+        warPath = "PersonWEB/src/main/webapp";
+    } else {
+        StringBuffer buffer = new StringBuffer();
+
+        for (int i = 0; i &lt; webPart; i++) {
+                buffer.append(pathParts[i]
+</code></pre>
+
+<p>);
+            buffer.append(File.separator);
+            }</p>
+
+<pre><code>        buffer.append("PersonWEB/src/main/webapp");
+        warPath = buffer.toString();
+    }
+    return warPath;
+    }
+
+    public static EmbeddedServer getInstance() {
+    return instance;
+    }
+
+    public Server getServer() {
+    return server;
+    }
+
+    public static void main(String[]
+</code></pre>
+
+<p>args) {
+        try {
+            EmbeddedServer.getInstance().getServer().join();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        }</p>
+
+<pre><code>    private WebApp getWebApp(WebAppContext context) {
+    WebApp webApp = null;
+
+    try {
+        FileInputStream is = new FileInputStream(new
+</code></pre>
+
+<p>File(context.getWar() + "/WEB-INF/web.xml").getAbsolutePath());
+            webApp = (WebApp) JaxbJavaee.unmarshal(WebApp.class, is);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return webApp;
+        }
+    } </p>
+
+<p>This class sets up an embedded instance of Jetty, running on port 9091.
+You'll notice the setupJndi() method. This looks through the ejb-ref
+entries in web.xml (which we deserialize using the openejb-jee library),
+and adds relevant LinkRefs to the JNDI tree, so you can lookup beans using
+the java:comp/env/bean format. I've added a main() method here for
+convenience, so you can run this straight from an IDE, and record tests
+using tools like the Selenium Firefox plugin.</p>
+
+<p><a name="FunctionaltestingwithOpenEJB,JettyandSelenium-Supporting@EJBDependencyinjection"></a></p>
+
+<h3>Supporting @EJB Dependency injection</h3>
+
+<p>In the last code sample, we also set up a custom ServletHandler in Jetty -
+this is to perform dependency injection. The custom ServletHandler looks
+like this:</p>
+
+<pre><code>public class EmbeddedServerServletHandler extends ServletHandler {
+    private InitialContext initialContext;
+
+    public EmbeddedServerServletHandler(InitialContext initialContext) {
+    this.initialContext = initialContext;
+    }
+
+    public Servlet customizeServlet(Servlet servlet) throws Exception {
+    Class&lt;? extends Servlet&gt; servletClass = servlet.getClass();
+        Field[]
+</code></pre>
+
+<p>declaredFields = servletClass.getDeclaredFields();</p>
+
+<pre><code>    for (Field declaredField : declaredFields) {
+            Annotation[]
+</code></pre>
+
+<p>annotations = declaredField.getAnnotations();</p>
+
+<pre><code>        for (Annotation annotation : annotations) {
+        if (EJB.class.equals(annotation.annotationType())) {
+            // inject into this field
+            Class&lt;?&gt; fieldType = declaredField.getType();
+            EnterpriseBeanInfo beanInfo = getBeanFor(fieldType);
+            if (beanInfo == null) {
+            continue;
+            }
+
+            String jndiName = "java:openejb/ejb/" +
+</code></pre>
+
+<p>beanInfo.jndiNames.get(0);
+                Object o = initialContext.lookup(jndiName);</p>
+
+<pre><code>            declaredField.setAccessible(true);
+            declaredField.set(servlet, o);
+        }
+        }
+    }
+
+    return super.customizeServlet(servlet);
+    }
+
+    private EnterpriseBeanInfo getBeanFor(Class&lt;?&gt; fieldType) {
+    return new EJBHelper().getBeanInfo(fieldType);
+    }
+} 
+</code></pre>
+
+<p>This looks up deployed beans that match the field type, and uses reflection
+to set the field.</p>
+
+<p><a name="FunctionaltestingwithOpenEJB,JettyandSelenium-WritingaFunctionaltest"></a></p>
+
+<h3>Writing a Functional test</h3>
+
+<p>We can now write a functional test. I use a base abstract class to make
+sure the Embedded server is running, and start Selenium:</p>
+
+<pre><code>public abstract class FunctionalTestCase extends TestCase {
+    protected DefaultSelenium selenium;
+
+    protected void setUp() throws Exception {
+    super.setUp();
+    EmbeddedServer.getInstance();
+    selenium = new DefaultSelenium("localhost", 4444, "*iexplore",
+</code></pre>
+
+<p>"http://localhost:9091/");
+        selenium.start();
+        }</p>
+
+<pre><code>    protected void tearDown() throws Exception {
+    selenium.stop();
+    }
+}
+</code></pre>
+
+<p>and I can then I write a test like this:</p>
+
+<pre><code>public class AddPersonTest extends FunctionalTestCase {
+    public void testShouldAddAPerson() throws Exception {
+    selenium.open("/People");
+    selenium.type("firstname", "Jonathan");
+    selenium.type("lastname", "Gallimore");
+        selenium.click("//input[@name='add' and @value='Add']
+</code></pre>
+
+<p>");
+        selenium.waitForPageToLoad("30000");
+        selenium.type("filter", "gallimore");
+        selenium.click("submit");
+        selenium.waitForPageToLoad("30000");
+            assertEquals(1, selenium.getXpathCount("//div[@id='people']
+/ul/li").intValue());
+            assertEquals("Jonathan Gallimore", selenium.getText("//div[@id='people']
+/ul/li[1]"));</p>
+
+<pre><code>    }
+} 
+</code></pre>
+
+<p><a name="FunctionaltestingwithOpenEJB,JettyandSelenium-Samplecode"></a></p>
+
+<h3>Sample code</h3>
+
+<p>I've made a sample project which demonstrates this, source is available <a href="http://people.apache.org/~jgallimore/PersonApp.zip">here</a>
+. You'll need Maven to build it, and you can build it and run the tests by
+running 'mvn clean install'. If want to run the tests from your IDE, you'll
+need to have a Selenium server running, which you can do by running 'mvn
+selenium:start-server'. </p>
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/generating-ejb-3-annotations.cwiki
==============================================================================
--- websites/staging/openejb/trunk/content/generating-ejb-3-annotations.cwiki (added)
+++ websites/staging/openejb/trunk/content/generating-ejb-3-annotations.cwiki Sun Jul 10 04:34:53 2011
@@ -0,0 +1,39 @@
+h1. Generating EJB 3 annotations
+
+The OpenEJB Eclipse plugin is able to provide some assistance in helping you migrate EJB 2.x projects to EJB 3.0, by analyzing your ejb-jar.xml file, and adding EJB annotations to your source code. This page will show you how to use this functionality.
+
+First of all you will need to add the EJB 3.0 API jars to the classpath of your project. If you are using Maven, you can add the following to your POM (you will need to update your Eclipse project using mvn eclipse:eclipse afterwards)
+
+{code}
+  <dependencies>
+    ...
+    <dependency>
+      <groupId>org.apache.openejb</groupId>
+      <artifactId>javaee-api</artifactId>
+      <version>5.0-1</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+{code}
+
+Alternatively, import the API jars into your project, and add them to your build path.
+
+Next, click the 'OpenEJB' menu on the menubar, and select 'Generate Annotations'.
+
+!http://www.jrg.me.uk/openejb/annotations_step_1.jpg!
+
+Select the project you would like to work with, if it isn't already selected. Click 'Next'.
+
+!http://www.jrg.me.uk/openejb/annotations_step_2.jpg!
+
+Select your ejb-jar.xml and (optionally) your openejb-jar.xml files. Select or deselect the other options as appropriate, and select 'Next'.
+
+Options:
+
+    * Alter SessionBean interfaces - This option makes your session beans implement your remote / local interfaces as opposed to javax.ejb.SessionBean, and stops your remote / local interfaces extending javax.ejb.EJBObject.
+    * Add @Remote and @RemoteHome annotations - This adds @Remote and @RemoteHome annotations appropriately
+    * Convert entity beans to POJOs - This options converts abstract CMP classes to POJOs generating simple getters and setters.
+
+!http://www.jrg.me.uk/openejb/annotations_step_3.jpg!
+
+Review the changes that the plugin will make to your source code. Uncheck any changes you don't want to apply, and click 'Finish'.

Added: websites/staging/openejb/trunk/content/generating-ejb-3-annotations.html
==============================================================================
--- websites/staging/openejb/trunk/content/generating-ejb-3-annotations.html (added)
+++ websites/staging/openejb/trunk/content/generating-ejb-3-annotations.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,145 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>Generating EJB 3 annotations</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          <p><a name="GeneratingEJB3annotations-GeneratingEJB3annotations"></a></p>
+
+<h1>Generating EJB 3 annotations</h1>
+
+<p>The OpenEJB Eclipse plugin is able to provide some assistance in helping
+you migrate EJB 2.x projects to EJB 3.0, by analyzing your ejb-jar.xml
+file, and adding EJB annotations to your source code. This page will show
+you how to use this functionality.</p>
+
+<p>First of all you will need to add the EJB 3.0 API jars to the classpath of
+your project. If you are using Maven, you can add the following to your POM
+(you will need to update your Eclipse project using mvn eclipse:eclipse
+afterwards)</p>
+
+<pre><code>  &lt;dependencies&gt;
+    ...
+    &lt;dependency&gt;
+      &lt;groupId&gt;org.apache.openejb&lt;/groupId&gt;
+      &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
+      &lt;version&gt;5.0-1&lt;/version&gt;
+      &lt;scope&gt;provided&lt;/scope&gt;
+    &lt;/dependency&gt;
+  &lt;/dependencies&gt;
+</code></pre>
+
+<p>Alternatively, import the API jars into your project, and add them to your
+build path.</p>
+
+<p>Next, click the 'OpenEJB' menu on the menubar, and select 'Generate
+Annotations'.</p>
+
+<p>!http://www.jrg.me.uk/openejb/annotations_step_1.jpg!</p>
+
+<p>Select the project you would like to work with, if it isn't already
+selected. Click 'Next'.</p>
+
+<p>!http://www.jrg.me.uk/openejb/annotations_step_2.jpg!</p>
+
+<p>Select your ejb-jar.xml and (optionally) your openejb-jar.xml files. Select
+or deselect the other options as appropriate, and select 'Next'.</p>
+
+<p>Options:</p>
+
+<pre><code>* Alter SessionBean interfaces - This option makes your session beans
+</code></pre>
+
+<p>implement your remote / local interfaces as opposed to
+javax.ejb.SessionBean, and stops your remote / local interfaces extending
+javax.ejb.EJBObject.
+    * Add @Remote and @RemoteHome annotations - This adds @Remote and
+@RemoteHome annotations appropriately
+    * Convert entity beans to POJOs - This options converts abstract CMP
+classes to POJOs generating simple getters and setters.</p>
+
+<p>!http://www.jrg.me.uk/openejb/annotations_step_3.jpg!</p>
+
+<p>Review the changes that the plugin will make to your source code. Uncheck
+any changes you don't want to apply, and click 'Finish'.</p>
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/geronimo.cwiki
==============================================================================
--- websites/staging/openejb/trunk/content/geronimo.cwiki (added)
+++ websites/staging/openejb/trunk/content/geronimo.cwiki Sun Jul 10 04:34:53 2011
@@ -0,0 +1,3 @@
+OpenEJB is the EJB Container implementation for [Apache Geronimo|http://geronimo.apache.org].  That integration is quite a bit different than what OpenEJB users are familiar with.  The best source of documentation on Geronimo and it's usage of OpenEJB is here:  
+
+ - [http://geronimo.apache.org/documentation.html]

Added: websites/staging/openejb/trunk/content/geronimo.html
==============================================================================
--- websites/staging/openejb/trunk/content/geronimo.html (added)
+++ websites/staging/openejb/trunk/content/geronimo.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,95 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>Geronimo</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          <p>OpenEJB is the EJB Container implementation for <a href="http://geronimo.apache.org">Apache Geronimo</a>
+.  That integration is quite a bit different than what OpenEJB users are
+familiar with.  The best source of documentation on Geronimo and it's usage
+of OpenEJB is here:  </p>
+
+<ul>
+<li><a href="http://geronimo.apache.org/documentation.html">http://geronimo.apache.org/documentation.html</a></li>
+</ul>
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/getting-support.cwiki
==============================================================================
    (empty)

Added: websites/staging/openejb/trunk/content/getting-support.html
==============================================================================
--- websites/staging/openejb/trunk/content/getting-support.html (added)
+++ websites/staging/openejb/trunk/content/getting-support.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>Getting Support</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/hello-world.cwiki
==============================================================================
--- websites/staging/openejb/trunk/content/hello-world.cwiki (added)
+++ websites/staging/openejb/trunk/content/hello-world.cwiki Sun Jul 10 04:34:53 2011
@@ -0,0 +1 @@
+{include:OPENEJBx30:Hello World}
\ No newline at end of file

Added: websites/staging/openejb/trunk/content/hello-world.html
==============================================================================
--- websites/staging/openejb/trunk/content/hello-world.html (added)
+++ websites/staging/openejb/trunk/content/hello-world.html Sun Jul 10 04:34:53 2011
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <title>Hello World</title>
+    <link rel="stylesheet" type="text/css" media="screen" href="http://incubator.apache.org/lucy/css/lucy.css">
+  </head>
+
+  <body>
+
+    <div id="lucy-rigid_wrapper">
+
+      <div id="lucy-top" class="container_16 lucy-white_box_3d">
+
+        <div id="lucy-logo_box" class="grid_8">
+          <a href="/OpenEJB/"><img src="http://openejb.apache.org/images/logo_openejb.gif" alt="Apache OpenEJB™"></a>
+        </div> <!-- lucy-logo_box -->
+
+        <div #id="lucy-top_nav_box" class="grid_8">
+          <div id="lucy-top_nav_bar" class="container_8">
+            <ul>
+              <li><a href="http://www.apache.org/" title="Apache Software Foundation">Apache Software Foundation</a></li>
+              <li><a href="http://www.apache.org/licenses/" title="License">License</a></li>
+              <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+              <li><a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a></li>
+              <li><a href="http://www.apache.org/security/ " title="Security">Security</a></li>
+            </ul>
+          </div> <!-- lucy-top_nav_bar -->
+          <p><a href="http://www.apache.org/">Apache</a>&nbsp;&raquo&nbsp;<a href="/">Incubator</a></p>
+          <form name="lucy-top_search_box" id="lucy-top_search_box" action="http://www.google.com/search" method="get">
+            <input value="*.apache.org" name="sitesearch" type="hidden"/>
+            <input type="text" name="q" id="query" style="width:85%">
+            <input type="submit" id="submit" value="Search">
+          </form>
+        </div> <!-- lucy-top_nav_box -->
+
+        <div class="clear"></div>
+
+      </div> <!-- lucy-top -->
+
+      <div id="lucy-main_content" class="container_16 lucy-white_box_3d">
+
+        <div class="grid_4" id="lucy-left_nav_box">
+          <h6>About</h6>
+            <ul>
+              <li><a href="/lucy/">Welcome</a></li>
+              <li><a href="/lucy/faq.html">FAQ</a></li>
+              <li><a href="/lucy/people.html">People</a></li>
+            </ul>
+          <h6>Resources</h6>
+            <ul>
+              <li><a href="/lucy/download.html">Download</a></li>
+              <li><a href="/lucy/mailing_lists.html">Mailing Lists</a></li>
+              <li><a href="/lucy/docs/perl/">Documentation</a></li>
+              <li><a href="http://wiki.apache.org/lucy/">Wiki</a></li>
+              <li><a href="https://issues.apache.org/jira/browse/LUCY">Issue Tracker</a></li>
+              <li><a href="/lucy/version_control.html">Version Control</a></li>
+            </ul>
+          <h6>Related Projects</h6>
+            <ul>
+              <li><a href="http://lucene.apache.org/java/">Lucene</a></li>
+              <li><a href="http://lucene.apache.org/solr/">Solr</a></li>
+              <li><a href="http://incubator.apache.org/lucene.net/">Lucene.NET</a></li>
+              <li><a href="http://lucene.apache.org/pylucene/">PyLucene</a></li>
+              <li><a href="http://lucene.apache.org/openrelevance/">Open Relevance</a></li>
+            </ul>
+        </div> <!-- lucy-left_nav_box -->
+
+        <div id="lucy-main_content_box" class="grid_9">
+          <p>{include:OPENEJBx30:Hello World}</p>
+
+        </div> <!-- lucy-main_content_box --> 
+        <div class="clear"></div>
+
+      </div> <!-- lucy-main_content -->
+
+      <div id="lucy-copyright" class="container_16">
+        <p>Copyright &#169; 2010-2011 The Apache Software Foundation, Licensed under the 
+           <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+           <br/>
+          
+        </p>
+      </div> <!-- lucy-copyright -->
+
+    </div> <!-- lucy-rigid_wrapper -->
+
+  </body>
+</html>

Added: websites/staging/openejb/trunk/content/homebasediscussion.cwiki
==============================================================================
--- websites/staging/openejb/trunk/content/homebasediscussion.cwiki (added)
+++ websites/staging/openejb/trunk/content/homebasediscussion.cwiki Sun Jul 10 04:34:53 2011
@@ -0,0 +1,167 @@
+{note:title=THIS PAGE IS ARCHIVED FOR THE MOMENT AND WILL BE REMOVED LATER. }
+h1. Life in 0.9.2
+
+Some background on how a 0.9.2 installation behaves.
+
+h2.  Basic layout
+
+Basically, openejb.base is the source for 100% of all configuration information and third party config files (log4j, castor, instantdb, whatever).  This includes finding where the, possibly many, <Deployment> entries in the openejb.conf point.  The openejb.home is where the code loading OpenEJB will look for all the OpenEJB libraries.  Usually openejb.base is not explicitly set and defaults to the value of openejb.home, so many people are used to only dealing with openejb.home.
+
+The point of having and openejb.base and openejb.home was basically to allow several independently configured instances of OpenEJB running on a system (perhaps embedded in Swing apps, in Tomcat, running as a standalone Server, or even in Groovy as Mr. Strachan did!) but without the need to copy all the OpenEJB system libraries everywhere.
+
+*openejb.home* 
+  * can be set explicitly via a system property.  
+  * if not set it default's to user.dir, which is the current working directory.
+See [source code|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/main/org/openejb/util/FileUtils.java?r=1.7.4.3#l58]
+
+*openejb.base*
+  * can be set explicitly via a system property.  
+  * If not set it default's to openejb.home.
+See [source code|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/main/org/openejb/util/FileUtils.java?r=1.7.4.3#l59]
+
+*openejb.configuration*
+  * can be set to explicitly point to the file containing your configuration.  
+  * If set to a relative path, we first look in user.dir/your-conf-file, then in openejb.base/your-conf-file
+  * If not set we check in openejb.base/conf/openejb.conf
+  * If no conf file is found, we create one in openejb.base/conf/openejb.conf
+See [source code|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/facilities/org/openejb/alt/config/ConfigUtils.java?r=1.21.2.1#l269]
+
+
+*relative paths in openejb.conf*
+  * Deployment entries are resolved relative to openejb.base.  [source code|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/facilities/org/openejb/alt/config/ConfigurationFactory.java?r=1.22.2.1#l969]
+  * Containers (such as the Castor CMP Container) use openejb.base to resolve their own config files.  Kind of an [ugly hack|
+http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/facilities/org/openejb/alt/containers/castor_cmp11/CastorCMP11_EntityContainer.java?r=1.16.2.6#l404] to get Castor JDO to load the database.xml and all other files from the right place, but it works.
+  * Resource adapters that are embedded usually have config files of their own and are also loaded from the openeb.base.  See [code|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/facilities/org/openejb/resource/jdbc/JdbcManagedConnectionFactory.java?r=1.7#l71].  Again that could be done better.
+
+Note:  Both Containers and Resources are what OpenEJB thinks of as [Services|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/main/org/openejb/spi/Service.java?r=1.2#l47] which have an init method.  In hindsight, both hacks to the JDBC Resouces Adapter and Castor CMP Container could be removed if we simply guaranteed that a Service's init method is called "relative" to the openejb.base dir.
+
+*log files*
+  * The log4.configuration file is resolved relative to openejb.base.  See [code|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/main/org/openejb/util/Logger.java?r=1.11.4.3#l1601]
+  * The properties in the config file that point to files are also resolved relative to openejb.base.  See [code|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/main/org/openejb/util/Logger.java?r=1.11.4.3#l1632]
+
+*OpenEJB libraries*
+  * The jars in the [lib and dist|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/server/org/openejb/server/Main.java?r=1.3] directories under openejb.home are [added to the classpath|http://cvs.openejb.org/viewrep/openejb/openejb-sfnet/src/main/org/openejb/util/ClasspathUtils.java?r=1.5.2.1#l95].
+
+h2. Summary
+
+A summary of the above in a different notation:
+
+{noformat}
+openejb.home = user.dir (can be set explicitly)
+openejb.base = openejb.home (can be set explicitly)
+openejb.conf = openejb.base/conf/openejb.conf (can be set explicitly)
+logging.conf = openejb.base/conf/logging.conf (can be set explicitly)
+deployments  = paths listed in openejb.conf (relative paths resolved from openejb.base)
+Classpath includes openejb.home/lib and openejb.home/dist
+{noformat}
+
+h2. Example layout
+
+In this one the openejb.home and openejb.base are set, everything else is defaulted.  The openejb.conf file as been updated to point to the ejb jars by name (abc-ejbs.jar and xyz-ejbs.jar).
+
+An example layout:
+{noformat}
+/usr/local/openejb  (openejb.home)
+/usr/local/openejb/lib  (in classpath)
+/usr/local/openejb/dist (in classpath)
+/home/jsmith/foo_app  (openejb.base)
+/home/jsmith/foo_app/conf/openejb.conf
+/home/jsmith/foo_app/conf/logging.conf
+/home/jsmith/foo_app/abc-ejbs.jar (Deployment entry in openejb.conf)
+/home/jsmith/foo_app/xyz-ejbs.jar (Deployment entry in openejb.conf)
+/home/jsmith/foo_app/logs/  
+{noformat}
+
+
+h2. Another Example layout
+
+In this example openejb.home and openejb.base are setup as well as the explicit paths for the openejb and log4j configuration files.
+
+An example layout:
+{noformat}
+/usr/local/openejb  (openejb.home)
+/usr/local/openejb/lib  (in classpath)
+/usr/local/openejb/dist (in classpath)
+/home/jsmith/foo_app  (openejb.base)
+/home/jsmith/foo_app/openejb.xml  (openejb.configuration)
+/home/jsmith/foo_app/abc-ejbs.jar (Deployment entry in openejb.xml)
+/home/jsmith/foo_app/xyz-ejbs.jar (Deployment entry in openejb.xml)
+/home/jsmith/foo_app/log4j.conf  (log4j.configuration)
+/home/jsmith/foo_app/mylogs/  (logging dir as defined in log4j.conf)
+{noformat}
+
+h2.  Possible and nice Tomcat setup.
+
+Set openejb.base to be the same as catalina.home, then OpenEJB and Tomcat will share the same conf and logs directories.
+
+h1.  Current OpenEJB 1.0 layout
+
+In the current 1.0 code, user.dir and openejb.home and openejb.base are essentially aggregated together to create a larger layout for a single running OpenEJB instance.  See [code|http://cvs.openejb.org/viewrep/openejb/openejb1/modules/core/src/java/org/openejb/util/FileUtils.java?r=1.4#l267]
+
+*openejb.home* 
+  * can be set explicitly via a system property.  
+  * if not set it default's to user.dir, which is the current working directory.
+Same as 0.9.2
+
+*openejb.base*
+  * can be set explicitly via a system property.  
+  * If not set it default's to openejb.home.
+Same as 0.9.2
+
+*openejb.configuration*
+  * can be set to explicitly point to the file containing your configuration.  
+  * If set to a relative path, we first look in user.dir/your-conf-file, then in openejb.base/your-conf-file, openejb.home/your-conf-file.
+  * If not set we check in openejb.base/conf/openejb.conf, then openejb.home/conf/openejb.conf
+  * If no conf file is found, we create one in openejb.base/conf/openejb.conf
+
+*relative paths in openejb.conf*
+  * Deployment entries are resolved relative to openejb.base, then openejb.home.  [source code|http://cvs.openejb.org/viewrep/openejb/openejb1/modules/core/src/java/org/openejb/alt/config/ConfigurationFactory.java?r=1.6#l1120]
+  * Containers (such as the Castor CMP Container) use openejb.base to resolve their own config files.  (Same as 0.9.2)
+  * Resource adapters are loaded from the openeb.home, not openejb.base as in 0.9.2.  See [code|http://cvs.openejb.org/viewrep/openejb/openejb1/modules/core/src/java/org/openejb/resource/jdbc/JdbcManagedConnectionFactory.java?r=1.5#l147].
+
+*log files*
+  * The log4.configuration file is resolved relative to openejb.base, then openejb.home.
+  * Each property in the config file that point to files are also first resolved relative to openejb.base then openejb.home.  See [code|http://cvs.openejb.org/viewrep/openejb/openejb1/modules/core/src/java/org/openejb/util/Logger.java?r=1.6]
+
+*OpenEJB libraries*
+  * The jars in the directories under openejb.home are added to the classloader.
+
+
+h2.  Example
+
+An interesting note on this is that the openejb.home is only checked when the file or directory is not found in the openejb.base.  So say you had the following entries in your openejb.conf.
+
+{code:xml} 
+<Deployment dir="beans" />
+<Deployment jar="foobar.jar" />
+{code}
+ 
+Then say you have an openejb.home with the following files and directories:
+
+{noformat}
+/usr/local/openejb (openejb.home)
+/usr/local/openejb/dist/(multiple jars)
+/usr/local/openejb/lib/(multiple jars)
+/usr/local/openejb/conf/openejb.conf
+/usr/local/openejb/beans/widget.jar
+/usr/local/openejb/beans/dohickey.jar
+/usr/local/openejb/beans/gizmo.jar
+/usr/local/openejb/logs/  (default logging dir)
+{noformat}
+
+And an openejb.base with the following files and directories:
+
+{noformat}
+/home/jsmith/foo_app (openejb.base)
+/home/jsmith/foo_app/conf/openejb.conf (used for this app)
+/home/jsmith/foo_app/foobar.jar
+/home/jsmith/foo_app/log4j.conf  (log4j.configuration)
+/home/jsmith/foo_app/logs/  (logging dir as defined in log4j.conf)
+{noformat}
+
+In this setup you will end up using your own conf file, your own logging file and logs directory.  You will get the ejbs from foobar.jar located in your openejb.base and the ejbs from the widget.jar, dohickey.jar, and gizmo.jar files in openejb.home/beans.
+
+Let's say that later on you decide you don't like having the foobar.jar listed in your conf file and decide to create a beans dir in your openejb.base and put it there.  When you start up your openejb instance it will no longer contain the ejbs from the widget.jar, dohickey.jar, and gizmo.jar files.  They are in the openejb.home and the openejb.home is only checked when the file or directory is not found in the openejb.base.  By adding a beans directory to your openejb.base you also implicitly removed all the ejbs from openejb.home/beans.
+
+By adding to your base you are potentially removing parts of your configuration at the same time.
+{note}
\ No newline at end of file