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 2012/01/31 11:48:35 UTC
svn commit: r803636 - in
/websites/staging/openejb/trunk/content/examples-trunk/webapps/applet:
README.html README.txt src/test/java/org/superbiz/JNDILookupTest.java
Author: buildbot
Date: Tue Jan 31 10:48:35 2012
New Revision: 803636
Log:
Staging update by buildbot for openejb
Modified:
websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.html
websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.txt
websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/src/test/java/org/superbiz/JNDILookupTest.java
Modified: websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.html
==============================================================================
--- websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.html (original)
+++ websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.html Tue Jan 31 10:48:35 2012
@@ -250,7 +250,7 @@ public class JNDILookupTest {
public void test() {
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory");
- props.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/openejb/ejb");
+ props.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/tomee/ejb");
try {
Context ctx = new InitialContext(props);
System.out.println("Found context " + ctx);
Modified: websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.txt
==============================================================================
--- websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.txt (original)
+++ websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/README.txt Tue Jan 31 10:48:35 2012
@@ -69,7 +69,7 @@ actually maps the /ejb/* to a servlet na
too keep in mind in your web-app. Yes, the provider url actually points to a servlet named
ServerServlet. This servlet is provided by openejb and is automatically added to you webapps
classpath.
-[Note:- All other clients (except applets) will use a provider url of http://127.0.0.1:8080/openejb/ejb,
+[Note:- All other clients (except applets) will use a provider url of http://127.0.0.1:8080/tomee/ejb,
since an applet cannot connect to another web-app, hence the above little trick to work around this
limitation. If you do not make the change, you will get a HTTP 403 error i.e. server denied
access to the ServerServlet . A unit test named JNDILookupTest has been added to the example to
Modified: websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/src/test/java/org/superbiz/JNDILookupTest.java
==============================================================================
--- websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/src/test/java/org/superbiz/JNDILookupTest.java (original)
+++ websites/staging/openejb/trunk/content/examples-trunk/webapps/applet/src/test/java/org/superbiz/JNDILookupTest.java Tue Jan 31 10:48:35 2012
@@ -33,7 +33,7 @@ public class JNDILookupTest {
public void test() {
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory");
- props.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/openejb/ejb");
+ props.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/tomee/ejb");
try {
Context ctx = new InitialContext(props);
System.out.println("Found context " + ctx);