Author: buildbot
Date: Thu Oct 20 16:33:50 2016
New Revision: 999712

Log:
Staging update by buildbot for tomee

Modified:
    websites/staging/tomee/trunk/cgi-bin/   (props changed)
    websites/staging/tomee/trunk/content/   (props changed)
    websites/staging/tomee/trunk/content/ng/advanced/client/jndi.html
    websites/staging/tomee/trunk/content/ng/advanced/client/jndi.pdf

Propchange: websites/staging/tomee/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Oct 20 16:33:50 2016
@@ -1 +1 @@
-1764938
+1765848

Propchange: websites/staging/tomee/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Oct 20 16:33:50 2016
@@ -1 +1 @@
-1764938
+1765848

Modified: websites/staging/tomee/trunk/content/ng/advanced/client/jndi.html
==============================================================================
--- websites/staging/tomee/trunk/content/ng/advanced/client/jndi.html (original)
+++ websites/staging/tomee/trunk/content/ng/advanced/client/jndi.html Thu Oct 
20 16:33:50 2016
@@ -171,12 +171,29 @@ ctx.lookup("java:....");</code></pre>
 </td>
 <td class="content">
 <code>Context.SECURITY_*</code> shouldn&#8217;t be used for runtime lookups 
with <code>LocalInitialContextFactory</code>, it would leak a security identity 
and make the runtime no more thread safe.
+This factory was deprecated starting with 7.0.2 in favor of 
<code>org.apache.openejb.core.OpenEJBInitialContextFactory</code>.
 </td>
 </tr>
 </table>
 </div>
 </div>
 </div>
+<div class="sect1">
+<h2 id="_openejbinitialcontextfactory">OpenEJBInitialContextFactory</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>This factory allows you to access local EJB and container resources.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code class="language-java" 
data-lang="java">Properties properties = new Properties();
+properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.core.OpenEJBInitialContextFactory");
+final Context ctx = new InitialContext(properties);
+ctx.lookup("java:....");</code></pre>
+</div>
+</div>
+</div>
+</div>
 <div class="sect1">
 <h2 id="_remoteinitialcontextfactory">RemoteInitialContextFactory</h2>
 <div class="sectionbody">

Modified: websites/staging/tomee/trunk/content/ng/advanced/client/jndi.pdf
==============================================================================
Binary files - no diff available.


Reply via email to