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/12 20:06:36 UTC

svn commit: r792601 [21/49] - /websites/staging/openejb/trunk/content/

Modified: websites/staging/openejb/trunk/content/logging.html
==============================================================================
--- websites/staging/openejb/trunk/content/logging.html (original)
+++ websites/staging/openejb/trunk/content/logging.html Tue Jul 12 18:06:32 2011
@@ -152,13 +152,13 @@
           <P>
             <!-- $BODY -->
             <DIV id="PageContent">
-          <p><a name="Logging-LoggingforUsers">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+          <p><a name="Logging-LoggingforUsers"></a></p>
 
 <h2>Logging for Users</h2>
 
 <p>All logging in OpenEJB is done using the
-openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">logging.properties file. When you download and e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">tract
-OpenEJB, you will not find this file under the openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf directory.
+openejb.base/conf/logging.properties file. When you download and extract
+OpenEJB, you will not find this file under the openejb.base/conf directory.
 However, when you start the server, this file magically appears. So what
 does this give you as a user of OpenEJB? Here are some of the benefits:
 1. You do not have to author a logging.properties from scratch. You get one
@@ -170,27 +170,27 @@ default file generated by OpenEJB, all y
 
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 OpenEJB will find that the logging.properties file is missing from the
-openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf directory and it will automatically create a new one with
+openejb.base/conf directory and it will automatically create a new one with
 the default configuration. The good thing is that if you modify the
 logging.properties file, OpenEJB will *NOT* over-write it.</p>
 
 <p>The default logging configuration created by OpenEJB uses
 RollingFileAppender's. The log files are located under the
-openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">logs directory. By default it writes to just two files ,
+openejb.base/logs directory. By default it writes to just two files ,
 openejb.log and transaction.log&nbsp;
 {info:title=Embedded Testing}
 When running tests using embedded OpenEJB, the logging.properties will be
 ignored. You need to use a file named embedded.logging.properties instead.
-Place this file under src<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">test<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">resources
+Place this file under src/test/resources
 {info} 
-<a name="Logging-Loggingforcontributors<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">committers">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<a name="Logging-Loggingforcontributors/committers"></a></p>
 
-<h2>Logging for contributors<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">committers</h2>
+<h2>Logging for contributors/committers</h2>
 
 <p>The org.apache.openejb.util.Logger class is the one which is used for
 logging. This class is a wrapper around log4.&nbsp;</p>
 
-<p><a name="Logging-LogCategory">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="Logging-LogCategory"></a></p>
 
 <h3>LogCategory</h3>
 
@@ -205,20 +205,20 @@ class looks like</p>
   public static final LogCategory OPENEJB_STARTUP = OPENEJB.createChild("startup");
   public static final LogCategory OPENEJB_STARTUP_CONFIG = OPENEJB_STARTUP.createChild("config");
   public static final LogCategory OPENEJB_STARTUP_VALIDATION = OPENEJB_STARTUP.createChild("validation");
-       &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt; other categories removed for code brevity
+       // other categories removed for code brevity
   private LogCategory(String name){
     this.name = name;
   }
   public String getName() {
     return name;
   }
-  &lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;**
-   * Creates a child category of this category. &lt;B&gt;Use this method sparingly&lt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;B&gt;. This method is to be used in only those circumstances where the name of the
+  /**
+   * Creates a child category of this category. &lt;B&gt;Use this method sparingly&lt;/B&gt;. This method is to be used in only those circumstances where the name of the
    * category is not known upfront and is a derived name. If you know the name of the category, it is highly recommended to add a static final field
    * of type LogCategory in this class
    * @param child
    * @return - LogCategory
-   *&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;
+   */
   public LogCategory createChild(String child){
     return new LogCategory(this.name+"."+child);
   }
@@ -230,7 +230,7 @@ class looks like</p>
 objective here is that each LogCategory should be a child of the OPENEJB
 category. If you need to add a new category and you know the name of the
 category upfront, simply open the LogCategory class and add another
-category. For e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample, if you needed to add a category named SHUTDOWN, here
+category. For example, if you needed to add a category named SHUTDOWN, here
 is the recommended way to add it</p>
 
 <pre><code>public static final LogCategory OPENEJB_SHUTDOWN = LogCategory.OPENEJB.createChild("shutdown");
@@ -238,7 +238,7 @@ is the recommended way to add it</p>
 
 <p>Sometimes you may want to create a category whose name is "generated" at
 runtime. In that case you can use the "createChild" method of the
-LogCategory class to create this new category.&nbsp; For e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample, if you
+LogCategory class to create this new category.&nbsp; For example, if you
 wanted to create a category of Logger for every deployed module, then
 assuming you have the moduleId information you could do something as
 follows to create a category:</p>
@@ -247,17 +247,17 @@ follows to create a category:</p>
 LogCategory generatedCategory = LogCategory.OPENEJB.createChild(moduleId);
 </code></pre>
 
-<p><a name="Logging-&nbsp;Logger">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="Logging-&nbsp;Logger"></a></p>
 
 <h3>&nbsp;Logger</h3>
 
-<p>The preference is to e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ternalize all logging messages in properties file.
+<p>The preference is to externalize all logging messages in properties file.
 Typically each package should have a file called Messages.properties.&nbsp;
 This file should have all the keys and the corresponding messages.&nbsp;
 Here are the steps you would follow to log a message:
 * For each message you need to log, you would open the Messages.properties
 file in the corresponding package and add a key-value pair for the
-message.&nbsp; For e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample, if you were authoring a class called
+message.&nbsp; For example, if you were authoring a class called
 org.apache.openejb.util.Connect, then you would add a key-value pair to the
 Messages.properties file located in the org.apache.openejb.util package.</p>
 
@@ -280,14 +280,14 @@ Using the Class</em></p>
 </code></pre>
 
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<em>Get a child Logger for an e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">isting Logger instance</em></p>
+<em>Get a child Logger for an existing Logger instance</em></p>
 
 <pre><code>Logger logger = Logger.getInsance(LogCategory.OPENEJB, Connect.class);
 Logger child = logger.getChildLogger("shutdown");
 </code></pre>
 
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<em>Get a child Logger of an e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">isting Logger using a LogCategory</em></p>
+<em>Get a child Logger of an existing Logger using a LogCategory</em></p>
 
 <pre><code>LogCategory childCategory = LogCategory.OPENEJB.createChild("shutdown");
 Logger logger = Logger.getInstance(childCategory,Connect.class);
@@ -309,7 +309,7 @@ logger.info("error.file");</p></li>
 Messages.properties file under org.apache.openejb.util must have the
 "error.file" key in it with the corresponding message.</p>
 
-<p><a name="Logging-LoggerInheritance&nbsp;">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="Logging-LoggerInheritance&nbsp;"></a></p>
 
 <h3>Logger Inheritance&nbsp;</h3>
 
@@ -317,68 +317,68 @@ Messages.properties file under org.apach
 Here is how it works:</p>
 
 <p>Say you have the following Messages.properties files in the classpath.
-1. &nbsp; org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">apache<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Messages.properties
-1. &nbsp; org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">apache<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">core<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Messages.properties
-1. &nbsp; org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">apache<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">core<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">stateless<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Messages.properties</p>
+1. &nbsp; org/apache/openejb/Messages.properties
+1. &nbsp; org/apache/openejb/core/Messages.properties
+1. &nbsp; org/apache/openejb/core/stateless/Messages.properties</p>
 
 <p>&nbsp;
 &nbsp;
 Then you have a class such as
 org.apache.openejb.core.stateless.StatelessContainer (+note the package+)
-If that class referenced a message key "classNotFound" for e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample, the
+If that class referenced a message key "classNotFound" for example, the
 Logger would look for the message first in Messages.properties 3, then 2,
 then 1 and so on until it found the required message.
-This would allow better reuse of messages, more fle<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ibility in where we put
+This would allow better reuse of messages, more flexibility in where we put
 the Message.properties&nbsp; files, as well as the added bonus in that we
 no longer need to pass in the location of where our
 Message.properties file is</p>
 
-<p><a name="Logging-Loggingforintegrators">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="Logging-Loggingforintegrators"></a></p>
 
 <h3>Logging for integrators</h3>
 
 <p>If you want to embed OpenEJB in your application and need to control the
-logging configuration of OpenEJB, simple set the openejb.logger.e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ternal
+logging configuration of OpenEJB, simple set the openejb.logger.external
 system property to true. Now, its your applications' responsibility to
 configure logging, OpenEJB will simply use your configuration.</p>
 
-<p><a name="Logging-&nbsp;OriginationoftheLoggingIdea">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="Logging-&nbsp;OriginationoftheLoggingIdea"></a></p>
 
 <h3>&nbsp;Origination of the Logging Idea</h3>
 
 <p>There has been a long discussion for this logging idea. Its going to be
-worth it to read the discussion at [i18n and logging](http:<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">www.nabble.com<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">i18n-and-logging-tf3962134s2756.html)</p>
+worth it to read the discussion at <a href="http://www.nabble.com/i18n-and-logging-tf3962134s2756.html">i18n and logging</a></p>
 
-<p>+Here is a e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">tract from an email from David Blevins which talks about the
-e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">isting logging framework. The current framework is more or less the same
+<p>+Here is a extract from an email from David Blevins which talks about the
+existing logging framework. The current framework is more or less the same
 as this one, just some added features and a rewrite of the API+</p>
 
 <p>Each module has a file called default.logging.conf. This file contains the
 definition of all Loggers, their appenders and warning levels. However, we
 do not use default.logging.conf first. The basic idea is that first we look
-for say conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">logging.conf in the openejb.base directory. &nbsp;If we don't
+for say conf/logging.conf in the openejb.base directory. &nbsp;If we don't
 find it there, we look for default.logging.conf in the classpath. &nbsp;If
 we did find default.logging.conf (which we should) and there is an
-openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> directory then e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">pand the default.logging.conf to
-openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">logging.conf where we e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">pected to find the file in the
-first place. &nbsp;If there was no openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> directory, then it's
+openejb.base/conf/ directory then expand the default.logging.conf to
+openejb.base/conf/logging.conf where we expected to find the file in the
+first place. &nbsp;If there was no openejb.base/conf/ directory, then it's
 safe to assume we're running embedded (in a test case perhaps) and just use
-the default.logging.conf and do no e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">tra work.</p>
+the default.logging.conf and do no extra work.</p>
 
 <p>We have default.logging.conf which we use this way as well as
 default.openejb.conf and now more recently users.properties and
 groups.properties. &nbsp;We search on disk for the resource in
-openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> if we don't find them we unpack the default one we
-stuffed in openejb-core jar and e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">tract it to disk in the openejb.base<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">conf
+openejb.base/conf/ if we don't find them we unpack the default one we
+stuffed in openejb-core jar and extract it to disk in the openejb.base/conf
 directory if there is one -- if there isn't one we just use the default
 file.</p>
 
 <p>The basic ideas behind the pattern are that:
  &nbsp;1. If you've messed up your configuration, just delete or rename the
-respective files in your conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> directory and new (working) ones will
+respective files in your conf/ directory and new (working) ones will
 magically appear.
  &nbsp;2. When upgrading its nice that our zip file won't overwrite any
-e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">isting files in conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">
+existing files in conf/
  &nbsp;3. If you're running embedded you don't have to setup any
 directories or have any config files, we can run on defaults.</p>
 
@@ -386,11 +386,11 @@ directories or have any config files, we
 but so far we're only using it for the users.properties and
 groups.properties files. &nbsp;We should be using it everywhere.
 &nbsp;Having the code in multiple places has lead to some inconsistencies
-such as we e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">pand the default.openejb.conf file to conf<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml (not
-even the same file e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">tension). &nbsp;We really don't need the "default"
-part in our file names and the lingering usage of the "conf" file e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">tension
+such as we expand the default.openejb.conf file to conf/openejb.xml (not
+even the same file extension). &nbsp;We really don't need the "default"
+part in our file names and the lingering usage of the "conf" file extension
 is something that needs to go bye-bye -- we should use properties for
-properties files and <IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml for <IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml files, etc.</p>
+properties files and xml for xml files, etc.</p>
 
             </DIV>
           </P>

Modified: websites/staging/openejb/trunk/content/lookup-of-other-ejbs-example.html
==============================================================================
--- websites/staging/openejb/trunk/content/lookup-of-other-ejbs-example.html (original)
+++ websites/staging/openejb/trunk/content/lookup-of-other-ejbs-example.html Tue Jul 12 18:06:32 2011
@@ -152,14 +152,14 @@
           <P>
             <!-- $BODY -->
             <DIV id="PageContent">
-          <p><a name="LookupofotherEJBsE<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample-Overview">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+          <p><a name="LookupofotherEJBsExample-Overview"></a></p>
 
 <h1>Overview</h1>
 
-<p>This e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample shows how to configure JNDI to lookup other EJBs using either
-the <em>@EJB</em> annotation or the <em>ejb-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml</em> deployment descriptor.</p>
+<p>This example shows how to configure JNDI to lookup other EJBs using either
+the <em>@EJB</em> annotation or the <em>ejb-jar.xml</em> deployment descriptor.</p>
 
-<p>There are a couple interesting aspects in this e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample intended to flush
+<p>There are a couple interesting aspects in this example intended to flush
 out some of the more confusing, and perhaps frustrating, aspects of
 referring to EJBs.</p>
 
@@ -174,11 +174,11 @@ It does not matter what you do to your E
 "give" the bean a name that can be used by the application globally.</p>
 
 <ul>
-<li>each EJB owns its own private <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env</em> namespace
-(<em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env</em> is not global and cannot be treated that way)</li>
-<li>names do not magically appear in <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env</em>, they must be
-e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">plicitly added.</li>
-<li>to get a reference to bean <em>B</em> in the <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env</em> namespace of
+<li>each EJB owns its own private <em>java:comp/env</em> namespace
+(<em>java:comp/env</em> is not global and cannot be treated that way)</li>
+<li>names do not magically appear in <em>java:comp/env</em>, they must be
+explicitly added.</li>
+<li>to get a reference to bean <em>B</em> in the <em>java:comp/env</em> namespace of
 bean <em>A</em>, bean <em>A</em> must declare a reference to bean <em>B</em>.</li>
 </ul>
 
@@ -193,77 +193,77 @@ where names can be defined with the desi
 <p>There are two things which make this even more confusing:</p>
 
 <ul>
-<li>Servlets have always defined <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env</em> differently. In a
-webapp, the <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env</em> namespace is shared by all servlets.  This is
+<li>Servlets have always defined <em>java:comp/env</em> differently.    In a
+webapp, the <em>java:comp/env</em> namespace is shared by all servlets.  This is
 essentially equivalent to the <em>java:module</em> namespace in Java EE 6. 
 Understand there is a conflict in definition here and that for EJBs,
 <em>java:comp</em> is scoped at the component (the EJB itself) not the module as
 with webapps.</li>
 <li>All vendors have some proprietary concept of global JNDI.  So you may be
-able to lookup "<em>java:<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">MyBean</em>" or "<em>MyBeanLocal</em>", but these are
+able to lookup "<em>java:/MyBean</em>" or "<em>MyBeanLocal</em>", but these are
 vendor-specific and non-portable.</li>
 </ul>
 
-<p>As well this e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample shows some other interesting aspects of referring to
+<p>As well this example shows some other interesting aspects of referring to
 EJBs:</p>
 
 <ul>
 <li>Two beans may use the same business interfaces, the interface alone does
-not necessarily identify the e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">act bean</li>
+not necessarily identify the exact bean</li>
 <li>circular references are possible</li>
 </ul>
 
 <p>To illustrate all of this, we have two simple @Stateless beans, <em>RedBean</em>
 and <em>BlueBean</em>.  Both implement the same business local interface,
 <em>Friend</em>.  Both <em>RedBean</em> and <em>BlueBean</em> define
-<em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">myFriend</em> differently which is allowed as <em>java:comp</em> is
+<em>java:comp/env/myFriend</em> differently which is allowed as <em>java:comp</em> is
 a namespace that is private to each bean and not visible to other beans --
 so the names do not have to match. </p>
 
-<p><a name="LookupofotherEJBsE<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample-TheCode">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="LookupofotherEJBsExample-TheCode"></a></p>
 
 <h1>The Code</h1>
 
 <p>Here we show the code for <em>RedBean</em> and <em>BlueBean</em> and their shared
 business local interface <em>Friend</em>.
-{snippet:id=code|url=openejb3<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">src<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">main<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border=
 "0">java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">superbiz<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">ejblookup<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">RedBean.java|lang=java}
-{snippet:id=code|url=openejb3<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">src<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">main<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border=
 "0">java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">superbiz<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">ejblookup<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">BlueBean.java|lang=java}
-{snippet:id=code|url=openejb3<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">src<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">main<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border=
 "0">java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">superbiz<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">ejblookup<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Friend.java|lang=java}</p>
+{snippet:id=code|url=openejb3/examples/lookup-of-ejbs/src/main/java/org/superbiz/ejblookup/RedBean.java|lang=java}
+{snippet:id=code|url=openejb3/examples/lookup-of-ejbs/src/main/java/org/superbiz/ejblookup/BlueBean.java|lang=java}
+{snippet:id=code|url=openejb3/examples/lookup-of-ejbs/src/main/java/org/superbiz/ejblookup/Friend.java|lang=java}</p>
 
 <p>The key items in the above are the following:
  - <em>@EJB</em> has been used at the <em>class level</em> to declare <em>myFriend</em> in
-the <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env</em> namespace of each EJB
+the <em>java:comp/env</em> namespace of each EJB
  - because both beans share the <em>same interface</em>, <em>Friend</em>, we need to
-add <strong>beanName</strong> to the <em>@EJB</em> usage to specify the e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">act EJB we want
- - for <em>BlueBean</em> the <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">myFriend</em> name has been configured
+add <strong>beanName</strong> to the <em>@EJB</em> usage to specify the exact EJB we want
+ - for <em>BlueBean</em> the <em>java:comp/env/myFriend</em> name has been configured
 to point to <em>RedBean</em>
- - for <em>RedBean</em> the <em>java:comp<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">env<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">myFriend</em> name has been configured
+ - for <em>RedBean</em> the <em>java:comp/env/myFriend</em> name has been configured
 to point to <em>BlueBean</em></p>
 
-<p><a name="LookupofotherEJBsE<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample-Alternativetoannotations">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="LookupofotherEJBsExample-Alternativetoannotations"></a></p>
 
 <h2>Alternative to annotations</h2>
 
 <p>If there is a desire to not use annotations, the above annotation usage is
-equivalent to the following ejb-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml
-{snippet:url=openejb3<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs-with-descriptor<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">src<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">main<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt=""
  border="0">resources<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">META-INF<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">ejb-jar.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml|lang=<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ml}</p>
+equivalent to the following ejb-jar.xml
+{snippet:url=openejb3/examples/lookup-of-ejbs-with-descriptor/src/main/resources/META-INF/ejb-jar.xml|lang=xml}</p>
 
-<p><a name="LookupofotherEJBsE<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample-Writingaunittestforthee<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="LookupofotherEJBsExample-Writingaunittestfortheexample"></a></p>
 
-<h1>Writing a unit test for the e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample</h1>
+<h1>Writing a unit test for the example</h1>
 
-<p>Writing an unit test for this e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample is quite simple. We need just to
-write a setup method to create and initialize the InitialConte<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">t, and then
+<p>Writing an unit test for this example is quite simple. We need just to
+write a setup method to create and initialize the InitialContext, and then
 write our test methods</p>
 
-<p>{snippet:id=code|url=openejb3<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">src<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">test<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" bord
 er="0">java<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">org<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">superbiz<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">ejblookup<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">EjbDependencyTest.java|lang=java}</p>
+<p>{snippet:id=code|url=openejb3/examples/lookup-of-ejbs/src/test/java/org/superbiz/ejblookup/EjbDependencyTest.java|lang=java}</p>
 
-<p><a name="LookupofotherEJBsE<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample-Running">&lt;<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">a></p>
+<p><a name="LookupofotherEJBsExample-Running"></a></p>
 
 <h1>Running</h1>
 
-<p>Running the e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">ample is fairly simple.  In the "lookup-of-ejbs" directory of
-the <a href="openejb:download.html">e<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples zip</a>
+<p>Running the example is fairly simple.  In the "lookup-of-ejbs" directory of
+the <a href="openejb:download.html">examples zip</a>
 , just run:</p>
 
 <blockquote>
@@ -277,21 +277,21 @@ the <a href="openejb:download.html">e<IM
 -------------------------------------------------------
 Running org.superbiz.ejblookup.EjbDependencyTest
 Apache OpenEJB 3.1.5-SNAPSHOT    build: 20101129-09:51
-http:&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;openejb.apache.org&lt;IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"&gt;
+http://openejb.apache.org/
 INFO - openejb.home =
 </code></pre>
 
-<p><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Users<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">dblevins<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">work<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb-3.1.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon
 " src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs
+<p>/Users/dblevins/work/openejb-3.1.x/examples/lookup-of-ejbs
     INFO - openejb.base =
-<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Users<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">dblevins<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">work<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb-3.1.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" s
 rc="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs
+/Users/dblevins/work/openejb-3.1.x/examples/lookup-of-ejbs
     INFO - Configuring Service(id=Default Security Service,
 type=SecurityService, provider-id=Default Security Service)
     INFO - Configuring Service(id=Default Transaction Manager,
 type=TransactionManager, provider-id=Default Transaction Manager)
     INFO - Found EjbModule in classpath:
-<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Users<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">dblevins<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">work<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb-3.1.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" s
 rc="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">target<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">classes
+/Users/dblevins/work/openejb-3.1.x/examples/lookup-of-ejbs/target/classes
     INFO - Beginning load:
-<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">Users<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">dblevins<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">work<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">openejb-3.1.<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">e<IMG class="emoticon" s
 rc="https://cwiki.apache.org/confluence/images/icons/emoticons/error.gif" height="16" width="16" align="absmiddle" alt="" border="0">amples<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">lookup-of-ejbs<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">target<IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0">classes
+/Users/dblevins/work/openejb-3.1.x/examples/lookup-of-ejbs/target/classes
     INFO - Configuring enterprise application: classpath.ear
     INFO - Configuring Service(id=Default Stateless Container, type=Container,
 provider-id=Default Stateless Container)