OGSA-DAI WSRF Distribution (OGSA-DAI WSRF 1.0)
This OGSA-DAI distribution provides a WSRF based service interface,
using the
Globus Toolkit 4 WSRF implementation.
Contents
Prerequisites
The deployment and use of the OGSA-DAI WSRF distribution will be
easier if you are already familiar with:
- OGSA-DAI concepts and terms.
-
WS-Addressing concepts and terms.
-
Web Services Resource Framework (WSRF) concepts and terms.
Prerequisite Software
To use OGSA-DAI WSRF you will need the following software:
-
Java 1.4.0
-
OGSA-DAI WSRF has been tested on this version of Java
though may work with other Java 1.4.x flavours.
-
Jakarta ANT 1.5
-
Globus Toolkit 4.0 Java Web Services Core
-
A database management system (DBMS)
Prerequisite JARs
If you have an OGSA-DAI WSRF binary distribution then you will need
the following JARs only if you intend
to use the associated functionality.
If you have an OGSA-DAI WSRF source distribution then you will need
all the JARs.
Data Resource Drivers
The Supported Data
Resources page lists the data resource-specific JARs that may be
be required depending on the databases you wish
to expose and additional functionality required. These database
drivers have all been tested with OGSA-DAI.
Build the Binary Distribution
If you have downloaded the binary distribution
then skip to Deploying OGSA-DAI WSRF below.
If you have the OGSA-DAI source distribution you will need to generate
a binary release. You can do this as follows:
-
Firstly, you must get all these JARs
and put them in the lib directory.
-
Set a GLOBUS_LOCATION
environment variable to point to the location of your GT4
distribution. For example, under UNIX, enter:
$ export GLOBUS_LOCATION=/path/to/Globus/directory
-
Now run the following target to build the OGSA-DAI binary
distribution:
$ ant createBinaryDistribution
Progress messages will appear and if there are any problems - for
example missing JARs - then you will be notified.
-
When complete, you will have a ZIPped, TARred binary distribution
within your OGSA-DAI source distribution directory. You will also have
a binary directory containing the
binary release.
-
You should now change into the binary
directory:
$ cd binary
Deploying OGSA-DAI WSRF
The OGSA-DAI WSRF binary distribution can be deployed onto the GT4
container or Apache Tomcat:
Deploying OGSA-DAI WSRF via the Command-line
Insert the Prerequisite JAR Files
First, download the prerequisite JAR files (listed above):
- jakarta-oro-2.0.7.jar
- lucene-1.4-final.jar
- xmldb.jar
and put these into the OGSA-DAI binary distribution
lib directory. (IF
you build your binary from a source distribution you will already
have these JARs and they will have been inserted into the binary
lib directory as part of the build).
Deploying OGSA-DAI WSRF onto GT4
If you wish to deploy OGSA-DAI WSRF onto the GT4 Web services
container then keep reading. If however you want to deploy
OGSA-DAI WSRF onto Apache Tomcat then skip to the next section.
To deploy OGSA-DAI WSRF onto GT4:
OGSA-DAI WSRF will then be deployed.
Deploying OGSA-DAI WSRF onto Tomcat
Before you can deploy OGSA-DAI WSRF onto Tomcat you will need to
deploy GT4 onto Tomcat. You can do this as follows, if you have
not already done so:
-
Set a GLOBUS_LOCATION
environment variable to point to the location of your GT4
distribution. For example, under UNIX, enter:
$ export GLOBUS_LOCATION=/path/to/Globus/directory
-
Set a CATALINA_HOME
environment variable to point to the location of Tomcat. For example,
under UNIX, enter:
$ export CATALINA_HOME=/path/to/Tomcat/directory
-
Run the following commands:
$ cd path/to/Globus/directory
$ ant -f share/globus_wsrf_common/tomcat/tomcat.xml deployTomcat
-Dtomcat.dir=/path/to/Tomcat
$ cd path/to/OGSA-DAI/binary/directory
-
For more information see the GT4 installation instructions.
Now, to deploy OGSA-DAI WSRF onto Tomcat, run the following from within
the OGSA-DAI binary distribution directory:
$ ant deployTomcat
OGSA-DAI WSRF will then be deployed to Tomcat.
Note: as an alternative to setting CATALINA_HOME you
can specify the Tomcat location at the command-line as follows:
$ ant deployTomcat -Dtomcat.dir=/path/to/Tomcat/directory
Deploying OGSA-DAI WSRF using a GUI
Deploying OGSA-DAI WSRF onto GT4
If you wish to deploy OGSA-DAI WSRF onto the GT4 Web services
container then keep reading. If however you want to deploy
OGSA-DAI WSRF onto Apache Tomcat then skip to the next section.
To deploy OGSA-DAI WSRF onto GT4:
-
Run the following from within the OGSA-DAI binary distribution directory:
$ ant guiDeployGT4
-
A GUI will appear and you can select your GT4 distribution by
pressing the Select... button.
-
If GLOBUS_LOCATION is set then this will
be offered as the default selection.
-
When you are happy with the Path,
press Next.
-
You now have to select the prerequisite JAR files (listed above):
- jakarta-oro-2.0.7.jar
- lucene-1.4-final.jar
- xmldb.jar
-
Using the file browser on the left select a JAR file. Press Add to add it to the list of
current JARs on the right.
-
If you make a mistake then select the JAR on the right and press Remove to remove it from the
list.
-
When you are happy with your selections, press Next.
-
You will now be requested to press Next so that the tool can deploy
OGSA-DAI WSRF.
-
If any problems occur then the tool will notify you of these.
-
When the deployment has completed a completion window will be
displayed. Press Finish to exit the tool.
Deploying OGSA-DAI WSRF onto Tomcat
Before you can deploy OGSA-DAI WSRF onto Tomcat you will need to
deploy GT4 onto Tomcat. You can do this as follows, if you have
not already done so:
-
Set a GLOBUS_LOCATION
environment variable to point to the location of your GT4
distribution. For example, under UNIX, enter:
$ export GLOBUS_LOCATION=/path/to/Globus/directory
-
Set a CATALINA_HOME
environment variable to point to the location of Tomcat. For example,
under UNIX, enter:
$ export CATALINA_HOME=/path/to/Tomcat/directory
-
Run the following commands:
$ cd path/to/Globus/directory
$ ant -f share/globus_wsrf_common/tomcat/tomcat.xml deployTomcat
-Dtomcat.dir=$CATALINA_HOME
$ cd path/to/OGSA-DAI/binary/directory
-
For more information see the GT4 installation instructions.
Now, to deploy OGSA-DAI WSRF onto Tomcat:
-
Run the following from within the OGSA-DAI binary distribution directory:
$ ant guiDeployTomcat
-
A GUI will appear and you can select your Tomcat distribution by
pressing the Select... button.
-
If CATALINA_HOME is set then this will
be offered as the default selection.
-
When you are happy with the Path
press Next.
-
You now have to select the prerequisite JAR files (listed above):
- jakarta-oro-2.0.7.jar
- lucene-1.4-final.jar
- xmldb.jar
-
Using the file browser on the left select a JAR file. Press Add to add it to the list of
current JARs on the right.
-
If you make a mistake then select the JAR on the right and press Remove to remove it from the
list.
-
When you are happy with your selections, press Next.
-
You will now be requested to press Next so that the tool can deploy
OGSA-DAI WSRF.
-
If any problems occur then the tool will notify you of these.
-
When the deployment has completed a completion window will be
displayed. Press Finish to exit the tool.
Exposing Data Resources using OGSA-DAI WSRF
To expose a data resource via an OGSA-DAI WSRF data service is a
three-step process:
-
Deploy an OGSA-DAI data service. This data service initially
exposes 0 data service resources.
-
Deploy a data service resource. The data service resource contains
information about a data resource and the activities clients
can perform on that data resource via a data service.
-
Add the data service resource to a data service. This
instructs the data service to expose the data service resource
and so allows clients to interact with the data service
resource - thereby interacting with a data resource.
Our pages on deployment (which can be found
here) provide more information.
For those who want a quick introduction to OGSA-DAI WSRF we recommend:
-
Deploy a new data service as described
here.
-
Startup your Web services container.
-
Test the data service resource using the ListResources client and
ensuring that the service is available and exposes 0 data
service resources. The ListResources client is described here.
-
Shutdown your Web services container.
-
Deploy a new data data service resource as described
here.
-
Add the data service resource to the data service as described
here.
-
Startup your Web services container.
-
Submit a perform document to the data service resource exposed by
your data service using the End-to-end client. The End-to-end client
is described here.
Undeploying OGSA-DAI WSRF
The OGSA-DAI WSRF binary distribution can be undeployed from the GT4
container or Apache Tomcat:
Undeployment erases all OGSA-DAI XML Schema, OGSA-DAI-specific JAR
files and configuration files from the destination.
Undeploying OGSA-DAI WSRF via the Command-line
Undeploying OGSA-DAI WSRF from GT4
To undeploy OGSA-DAI WSRF from GT4:
OGSA-DAI WSRF will then be undeployed.
Undeploying OGSA-DAI WSRF from Tomcat
To undeploy OGSA-DAI WSRF from Tomcat:
Note: as an alternative to setting
CATALINA_HOME you
can specify the Tomcat location at the command-line as follows:
$ ant undeployTomcat -Dtomcat.dir=/path/to/Tomcat/directory
Undeploying OGSA-DAI WSRF using a GUI
Undeploying OGSA-DAI WSRF from GT4
To undeploy OGSA-DAI WSRF from GT4:
-
Run the following from within the OGSA-DAI binary distribution directory:
$ ant guiUndeployGT4
-
A GUI will appear and you can select your GT4 distribution by
pressing the Select... button.
-
If GLOBUS_LOCATION is set then this will
be offered as the default selection.
-
When you are happy with the Path
press Next.
-
You will now be requested to press Next so that the tool can deploy
OGSA-DAI WSRF.
-
If any problems occur then the tool will notify you of these.
-
When the undeployment has completed a completion window will be
displayed. Press Finish to exit the tool.
Undeploying OGSA-DAI WSRF from Tomcat
To undeploy OGSA-DAI WSRF from Tomcat:
-
Run the following from within the OGSA-DAI binary distribution directory:
$ ant guiUndeployTomcat
-
A GUI will appear and you can select your Tomcat distribution by
pressing the Select... button.
-
If CATALINA_HOME is set then this will
be offered as the default selection.
-
When you are happy with the Path
press Next.
-
You will now be requested to press Next so that the tool can deploy
OGSA-DAI WSRF.
-
If any problems occur then the tool will notify you of these.
-
When the undeployment has completed a completion window will be
displayed. Press Finish to exit the tool.
Where Does Stuff Go?
This section describes the locations of OGSA-DAI related files after
deployment on Tomcat or GT4.
Under GT4, OGSA-DAI resides in the following places:
-
share/schema/ogsadai/ - OGSA-DAI
XML Schema and WSDL.
-
lib/ - OGSA-DAI JAR files.
-
etc/ogsadai_wsrf/ - OGSA-DAI
configuration files - see below.
Under Tomcat, OGSA-DAI resides in the following places:
-
webapps/wsrf/share/schema/ogsadai/ -
OGSA-DAI XML Schema and WSDL.
-
webapps/wsrf/WEB-INF/lib/ -
OGSA-DAI JAR files.
-
webapps/wsrf/WEB-INF/etc/ogsadai_wsrf/ -
OGSA-DAI configuration files - see below.
The OGSA-DAI WSRF configuration files residing in the
etc/ogsadai_wsrf directories
are as follows:
-
server-config.wsdd - deployment
descriptors for the current OGSA-DAI services.
-
jndi-config.xml - JNDI deployment
descriptors for the
current OGSA-DAI services (see the GT4 documentation for
more information).
-
Data service resource files for each current data service. There
will be one of these XML files for each current OGSA-DA
service. These files maintain a list of the current data
service resources for each data service. The file name is
derived from the service path e.g. a service with relative
service path ogsadai/DataService has a file
_ogsadai_DataService.dsr.xml.
-
Data service resource directories. There is one such directory for
each deployed data service resource - the directory shares
the name of the data service resource
e.g. MyRelationalResource Each directory
contains:
-
dataResourceConfig.xml - data
resource configuration file for the data service resource.
-
activityConfig.xml - activity
configuration file for the data service resource.
-
DatabaseRoles.xml - roleMaps file for
the data service resource.