The grid service

Service interface

The service interface is the same as the one in the previous two sections (add, subtract, and getValue).

Service implementation

The code is very similar to the one from the previous two sections. The only real difference is that we're producing less logging information (We'll be using this service in the next section, and the only 'interesting' info we need is the caller's identity). The new implementation can be found in $TUTORIAL_DIR/org/globus/progtutorial/services/security/gridmap/impl/MathProvider.java

Compile and deploy

We'll need to compile this new service:

./tutorial_build.sh \
org/globus/progtutorial/services/security/gridmap \
schema/progtutorial/MathService/Math.gwsdl

Now, let's deploy it (remember to do this from the globus account)

ant deploy \
-Dgar.name=$TUTORIAL_DIR/build/lib/org_globus_progtutorial_services_security_gridmap.gar

Since we'll be producing some logs on the server side, add this line to the end of $GLOBUS_LOCATION/ogsilogging.properties:

org.globus.progtutorial.services.security.first.impl.MathProvider=console,info

Starting the container

Before starting the container (with the globus account) make sure you've created a proxy certificate. Once you've done that, start the container as usual:

globus-start-container