You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ri...@apache.org on 2007/06/19 11:11:33 UTC

svn commit: r548663 - in /geronimo/sandbox/magicGball: README.txt magicGball-ear/src/main/plan/magicgball-corba-nosec-plan.xml magicGball-ear/src/main/plan/magicgball-corba-plan.xml

Author: rickmcguire
Date: Tue Jun 19 02:11:31 2007
New Revision: 548663

URL: http://svn.apache.org/viewvc?view=rev&rev=548663
Log:
GERONIMO-3222 Updates to Corba sample MagicGball to work on Geronimo 2.0


Added:
    geronimo/sandbox/magicGball/README.txt   (with props)
Modified:
    geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-nosec-plan.xml
    geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-plan.xml

Added: geronimo/sandbox/magicGball/README.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/magicGball/README.txt?view=auto&rev=548663
==============================================================================
--- geronimo/sandbox/magicGball/README.txt (added)
+++ geronimo/sandbox/magicGball/README.txt Tue Jun 19 02:11:31 2007
@@ -0,0 +1,164 @@
+This sample is the mystical Magic G Ball (tm).  Ask it a question and the truth is revealed!
+
+MagicGBall uses CORBA to allow an application client to ask a question of
+a mystical EJB deployed in the server.  Two applications and clients are provided that use
+different communication security: none and SSL.  Both may not be deployed concurrently.
+
+Notes on the deploy command used below:
+It is deploy.bat or just deploy on windows, and deploy.sh in linux.
+The parameters "--user system --password manager" have been omitted.
+I have assumed that "deploy --user system --password manager login" has been run,
+and that you have not changed that userid/password combination.
+You will have to adjust your invocations accordingly.
+
+
+I. Insecure MagicGBall
+
+INSTALL:
+
+start Geronimo server
+
+Ensure that the module org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car is started.
+	deploy list-modules
+	if + org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car shows up in the output, good.
+	if not,
+	deploy start org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car
+
+cd %GERONIMO_HOME%\bin
+	where %GERONIMO_HOME% is where you installed your Geronimo server.
+
+deploy deploy %magicGball_Home%\magicGball-ear\target\magicGball-ear-2.0-SNAPSHOT.ear %magicGball_Home%\magicGball-ear\target\plan\magicgball-corba-nosec-plan.xml
+
+
+RUN:
+
+java -Djava.endorsed.dirs=%GERONIMO_HOME%\lib\endorsed  -jar client.jar org.apache.geronimo.samples/magicGBall-corba-nosec-client/2.0-SNAPSHOT/car "type your question here"
+	This runs the no security client.
+
+UNINSTALL:
+
+deploy undeploy org.apache.geronimo.samples/magicGBall-corba-nosec/2.0-SNAPSHOT/car
+	This stops and undeploys the no security application and client.
+
+
+II. Secure MagicGBall
+
+INSTALL:
+
+start Geronimo server
+
+Ensure that the module org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car is started.
+	deploy list-modules
+	if + org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car shows up in the output, good.
+	if not,
+	deploy start org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car
+
+cd %GERONIMO_HOME%\bin
+	where %GERONIMO_HOME% is where you installed your Geronimo server.
+
+deploy deploy %magicGball_Home%\magicGball-ear\target\magicGball-ear-2.0-SNAPSHOT.ear %magicGball_Home%\\magicGball-ear\target\plan\magicgball-corba-plan.xml
+
+
+RUN:
+
+java -Djava.endorsed.dirs=%GERONIMO_HOME%\lib\endorsed -jar client.jar org.apache.geronimo.samples/magicGBall-corba-ssl-client/2.0-SNAPSHOT/car "type your question here"
+	This runs the SSL security client.
+
+UNINSTALL:
+
+deploy undeploy org.apache.geronimo.samples/magicGBall-corba-ssl/2.0-SNAPSHOT/car
+	This stops and undeploys the SSL security application and client.
+
+
+
+III. Web access
+
+To ask MagicGBall a question from a web browser:
+
+After either MagicGBall application is installed, open this URL: http://localhost:8080/magicGball/
+
+Type your question in the Question: text box, and click the ask button.
+
+Use your browser's back button to ask another question.
+This sample is the mystical Magic G Ball (tm).  Ask it a question and the truth is revealed!
+
+MagicGBall uses CORBA to allow an application client to ask a question of
+a mystical EJB deployed in the server.  Two applications and clients are provided that use
+different communication security: none and SSL.  Both may not be deployed concurrently.
+
+Notes on the deploy command used below:
+It is deploy.bat or just deploy on windows, and deploy.sh in linux.
+The parameters "--user system --password manager" have been omitted.
+I have assumed that "deploy --user system --password manager login" has been run,
+and that you have not changed that userid/password combination.
+You will have to adjust your invocations accordingly.
+
+
+I. Insecure MagicGBall
+
+INSTALL:
+
+start Geronimo server
+
+Ensure that the module org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car is started.
+	deploy list-modules
+	if + org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car shows up in the output, good.
+	if not,
+	deploy start org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car
+
+cd %GERONIMO_HOME%\bin
+	where %GERONIMO_HOME% is where you installed your Geronimo server.
+
+deploy deploy %magicGball_Home%\magicGball-ear\target\magicGball-ear-2.0-SNAPSHOT.ear %magicGball_Home%\magicGball-ear\target\plan\magicgball-corba-nosec-plan.xml
+
+
+RUN:
+
+java -Djava.endorsed.dirs=%GERONIMO_HOME%\lib\endorsed  -jar client.jar client.jar org.apache.geronimo.samples/magicGBall-corba-nosec-client/2.0-SNAPSHOT/car "type your question here"
+	This runs the no security client.
+
+UNINSTALL:
+
+deploy undeploy org.apache.geronimo.samples/magicGBall-corba-nosec/2.0-SNAPSHOT/car
+	This stops and undeploys the no security application and client.
+
+
+II. Secure MagicGBall
+
+INSTALL:
+
+start Geronimo server
+
+Ensure that the module org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car is started.
+	deploy list-modules
+	if + org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car shows up in the output, good.
+	if not,
+	deploy start org.apache.geronimo.configs/openejb-corba-deployer/2.0-SNAPSHOT/car
+
+cd %GERONIMO_HOME%\bin
+	where %GERONIMO_HOME% is where you installed your Geronimo server.
+
+deploy deploy %magicGball_Home%\magicGball-ear\target\magicGball-ear-2.0-SNAPSHOT.ear %magicGball_Home%\\magicGball-ear\target\plan\magicgball-corba-plan.xml
+
+
+RUN:
+
+java -Djava.endorsed.dirs=%GERONIMO_HOME%\lib\endorsed -jar client.jar org.apache.geronimo.samples/magicGBall-corba-ssl-client/2.0-SNAPSHOT/car "type your question here"
+	This runs the SSL security client.
+
+UNINSTALL:
+
+deploy undeploy org.apache.geronimo.samples/magicGBall-corba-ssl/2.0-SNAPSHOT/car
+	This stops and undeploys the SSL security application and client.
+
+
+
+III. Web access
+
+To ask MagicGBall a question from a web browser:
+
+After either MagicGBall application is installed, open this URL: http://localhost:8080/magicGball/
+
+Type your question in the Question: text box, and click the ask button.
+
+Use your browser's back button to ask another question.

Propchange: geronimo/sandbox/magicGball/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/magicGball/README.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/magicGball/README.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-nosec-plan.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-nosec-plan.xml?view=diff&rev=548663&r1=548662&r2=548663
==============================================================================
--- geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-nosec-plan.xml (original)
+++ geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-nosec-plan.xml Tue Jun 19 02:11:31 2007
@@ -55,9 +55,6 @@
                 </reference>
                 <xml-attribute name="tssConfig">
                     <tss:tss xmlns:tss="http://openejb.apache.org/xml/ns/corba-tss-config-2.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2">
-                        <tss:default-principal>
-                            <sec:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="guest"/>
-                        </tss:default-principal>
                         <tss:compoundSecMechTypeList>
                             <tss:compoundSecMech>
                                 <tss:sasMech>

Modified: geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-plan.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-plan.xml?view=diff&rev=548663&r1=548662&r2=548663
==============================================================================
--- geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-plan.xml (original)
+++ geronimo/sandbox/magicGball/magicGball-ear/src/main/plan/magicgball-corba-plan.xml Tue Jun 19 02:11:31 2007
@@ -54,9 +54,6 @@
                 </reference>
                 <xml-attribute name="tssConfig">
                     <tss:tss xmlns:tss="http://openejb.apache.org/xml/ns/corba-tss-config-2.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2">
-                        <tss:default-principal>
-                            <sec:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="guest"/>
-                        </tss:default-principal>
                         <tss:SSL port="2001" hostname="localhost">
                             <tss:supports>Integrity Confidentiality EstablishTrustInTarget</tss:supports>
                             <tss:requires>Integrity Confidentiality</tss:requires>