This documents the complete range of options available when deploying OGSA-DAI.
To build a GAR file run:
$ ant buildGAR -Dgt.dir=/PATH/TO/GT \ [-Ddai.gar=LOCATION-OF-BUILT-GAR] \ Default: build/dai.gar [-Ddai.host=HOST] \ Default: localhost [-Ddai.port=PORT] \ Default: 8080 [-Ddai.webapp=WEBAPP] \ Default: wsrf [-Ddai.dres.service.name=DRES-SERVICE] \ Default: DataRequestExecutionService [-Ddai.dris.service.name=DRIS-SERVICE] \ Default: DataResourceInformationService [-Ddai.dsos.service.name=DSOS-SERVICE-NAME] \ Default: DataSourceService [-Ddai.dsis.service.name=DSIS-SERVICE-NAME] \ Default: DataSinkService [-Ddai.sms.service.name-SMS-SERVICE-NAME] \ Default: SessionManagementService [-Ddai.rms.service.name=RMS-SERVICE-NAME] Default: RequestManagementService
SERVICE-NAME
results, after deployment, in a service with URL:
http://HOST:PORT/WEBAPP/services/SERVICE-NAME
To deploy an OGSA-DAI GT GAR file onto the Globus Toolkit container
$ ant deployGAR -Dgt.dir=/PATH/TO/GT \ [-Ddai.gar=LOCATION-OF-BUILT-GAR] \ Default: build/dai.gar [-Ddai.host=HOST] \ Default: localhost [-Ddai.port=PORT] \ Default: 8080 [-Ddai.webapp=WEBAPP] Default: wsrf
The GAR file will be deployed into Globus Toolkit
container. The GAR file prefix (e.g.
dai determines the name of the
directory where deployment descriptors and other configuration files
go in the Globus Toolkit etc
directory.
To deploy an OGSA-DAI GT GAR file onto Tomcat
$ ant deployGARTomcat -Dgt.dir=/PATH/TO/GT -Dtomcat.dir=/PATH/TO/TOMCAT \ [-Ddai.gar=LOCATION-OF-BUILT-GAR] \ Default: build/dai.gar [-Ddai.host=HOST] \ Default: localhost [-Ddai.port=PORT] \ Default: 8080 [-Ddai.webapp=WEBAPP] Default: wsrf
The GAR file will be deployed into Tomcat. The GAR file prefix (e.g.
dai determines the name of the
directory where deployment descriptors and other configuration files
go in the Globus Toolkit webapp's etc
directory.
![]() | Note |
|---|---|
This mode of deployment is not supported by GT. This is our own
version. GT recommend deployment into a GT container
(e.g. using deployGAR) and then
deploying the GT container as a whole into Tomcat using the Globus
Toolkit using deployTomcat command.
|
To build a GAR file and then deploy the GAR file onto the Globus Toolkit container
$ ant buildAndDeployGAR
This command just invokes the buildGAR
and deployGAR commands so the
command-line options are as for these two commands.
To build a GAR file and then deploy the GAR file into Tomcat
$ ant buildAndDeployGARTomcat
This command just invokes the
buildGARTomcat and
deployGARTomcat commands so the
command-line options are as for these two commands.
To summarize, there are three possible deployment and usage approaches:
The Globus Toolkit deployGAR
command can be run as follows (assuming that an environment variable
GLOBUS_LOCATION points to the Globus
Toolkit distribution).
$ ant -f /PATH/TO/GT/share/globus_wsrf_common/build-packages.xml \ deployGar -Dgar.name=GAR-NAME.gar
For example:
$ ant -f /PATH/TO/GT/share/globus_wsrf_common/build-packages.xml \ deployGar -Dgar.name=dai.gar
Useful links: