Main BLOGGER
Google
WWW THIS BLOG
Friday, March 31, 2006
 
GT4 tutorial

1. Go to tutorial http://gdp.globus.org/gt4-tutorial/

2. Download tutorial source code from http://gdp.globus.org/gt4-tutorial/download/progtutorial-examples_0.2.1.tar.gz

3. Unzip the source code package to /home/pliu/gt4_tutorial

Note:

use bash afterwards

 
 
4. Make service GAR file: 
cd /home/pliu/gt4_tutorial
./globus-build-service.sh \
-d org/globus/examples/services/core/first/ \
-s schema/examples/MathService_instance/Math.wsdl

5. Deploy service

globus-deploy-gar /home/pliu/gt4_tutorial/org_globus_examples_services_core_first.gar

6. Start gt4 container

source $GLOBUS_LOCATION/etc/globus-user-env.sh

globus-start-container -nosec -p 8998

7. Compile client code

source $GLOBUS_LOCATION/etc/globus-devel-env.sh
cd /home/pliu/gt4_tutorial
javac \
-classpath ./build/stubs/classes/:$CLASSPATH \
org/globus/examples/clients/MathService_instance/Client.java

8. Run client

java -classpath ./build/stubs/classes/:$CLASSPATH org.globus.examples.clients.MathService_instance.Client http://127.0.0.1:8998/wsrf/services/examples/core/first/MathService

Current value: 15

Current value: 10

Note:

1. You will need to restart the Globus standalone container for the deployment to take effect.

2. After the container is restarted, all the states are gone.

For error messages caused by rft (not Sql Server is installed)

we can un-deploy this service

All the service will have a directory under $GLOBUS_LOCATION/etc
the directory name is the service id.

source $GLOBUS_LOCATION/etc/globus-user-env.sh
globus-undeploy-gar globus_wsrf_rft

Undeploying gar...

Deleting /home/pliu/gt4/etc/globus_wsrf_rft/security-config.xml
Deleting /home/pliu/gt4/etc/globus_wsrf_rft/factory-security-config.xml
Deleting /home/pliu/gt4/etc/globus_wsrf_rft/server-config.wsdd
Deleting /home/pliu/gt4/etc/globus_wsrf_rft/registration.xml
Deleting /home/pliu/gt4/etc/globus_wsrf_rft/jndi-config.xml
Deleting directory /home/pliu/gt4/etc/globus_wsrf_rft
Deleting: /home/pliu/gt4/etc/globus_packages/globus_wsrf_rft/undeploy.xml
Deleting directory /home/pliu/gt4/etc/globus_packages/globus_wsrf_rft

Undeploy successful




<< Home

Powered by Blogger

Google
WWW THIS BLOG