You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2012/07/02 01:51:06 UTC
svn commit: r824013 - in /websites/staging/openejb/trunk: cgi-bin/ content/
content/ejb-refs.html
Author: buildbot
Date: Sun Jul 1 23:51:05 2012
New Revision: 824013
Log:
Staging update by buildbot for openejb
Modified:
websites/staging/openejb/trunk/cgi-bin/ (props changed)
websites/staging/openejb/trunk/content/ (props changed)
websites/staging/openejb/trunk/content/ejb-refs.html
Propchange: websites/staging/openejb/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jul 1 23:51:05 2012
@@ -1 +1 @@
-1355977
+1356050
Propchange: websites/staging/openejb/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jul 1 23:51:05 2012
@@ -1 +1 @@
-1355977
+1356050
Modified: websites/staging/openejb/trunk/content/ejb-refs.html
==============================================================================
--- websites/staging/openejb/trunk/content/ejb-refs.html (original)
+++ websites/staging/openejb/trunk/content/ejb-refs.html Sun Jul 1 23:51:05 2012
@@ -147,7 +147,8 @@
</h1>
</div>
-<p><a name="EJBRefs-Referencingabeaninanotherjar(withannotations)"></a></p>
+<p>TomEE complains it doesn't know the container type, so I added type="javax.naming.InitialContext" and it worked (mostly).
+<a name="EJBRefs-Referencingabeaninanotherjar(withannotations)"></a></p>
<h2>Referencing a bean in another jar (with annotations)</h2>
@@ -269,7 +270,7 @@ it's injected.</p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<openejb>
- <JndiProvider id="shoe">
+ <JndiProvider id="shoe" type="javax.naming.InitialContext">
java.naming.provider.url = ejbd://localhost:4201
java.naming.factory.initial = org.apache.openejb.client.RemoteInitialContextFactory
</JndiProvider>
@@ -303,7 +304,7 @@ it's injected.</p>
<p>If say, there are two servers that have the <code>OrangeBeanRemote</code> bean, you could expand the <code><JndiProvider></code> delcaration like so:</p>
-<pre><code> <JndiProvider id="shoe">
+<pre><code> <JndiProvider id="shoe" type="javax.naming.InitialContext">
java.naming.provider.url = failover:ejbd://192.168.1.20:4201,ejbd://192.168.1.30:4201
java.naming.factory.initial = org.apache.openejb.client.RemoteInitialContextFactory
</JndiProvider>