This page describes how to deploy a data service resource. Once deployed the data service resource can then be added to the set of those exposed by a data service as described on the next page.
The characteristics of a data service resources are specified in a data services resource file. We describe these below.
There are a number of ways to create a data service resource file and deploy a data service resource. You can:
As a reminder, we list the data resources supported by OGSA-DAI on this page.
A data service resource file is used specify the properties of your data service resource. This is a simple properties file consisting of argument=value values. You can reuse the same file to deploy the same data service resource under different names or to customise a specific configuration in small or major ways. Alternatively you can just write a new file each time.
Within the OGSA-DAI WSRF distribution directory we provide an example - data.service.resource.properties. The file is fully commented.
The properties are as follows:
To deploy a data service resource under Tomcat:
$ ant deployResourceTomcat -Dtomcat.dir=/path/to/Tomcat/directory -Ddai.service.resource.file=DAI-SERVICE-RESOURCE-FILE
$ ant deployResourceTomcat -Ddai.service.resource.file=my.config ... [echo] Reading properties file my.config [echo] Data service resource ID: MySQLResource [echo] Data resource type: Relational [echo] Data resource product: MySQL [echo] Data resource vendor: MySQL [echo] Data resource version: 1.0 [echo] Data resource URI: jdbc:mysql://myhost.example.com:3306/ogsadai/DATABASE [echo] Data resource credential: [echo] Data resource user name: ogsadai [echo] Data resource password: ogsadai [echo] Data driver class: org.gjt.mm.mysql.Driver [echo] Deploying data service resource MySQLResource... ... [echo] Data service resource deployed!
$ ant deployResourceTomcat -Ddai.service.resource.file=my.config -Ddata.resource.id=AnotherResource
$ ant deployResourceTomcat -Ddai.service.resource.file=my.config -Ddata.resource.id=YetAnotherResource -Ddai.data.resource.uri=jdbc:mysql://myhost:8080/some/other/DB
To deploy data service resources under GT4 requires execution of the deployResourceGT4 target. This takes the same arguments as deployResourceTomcat. The exception is the tomcat.dir argument - this target instead accepts gt.dir which specifies the location of GT4. If this argument is omitted then the GT4 location specified within GLOBUS_LOCATION is used.
To create a new data service resource file and (optionally) deploy the data service resource under Tomcat:
$ ant guiCreateResourceTomcat
To create and deploy data service resources under GT4 requires execution of the guiCreateResourceGT4 target.
To edit an existing data service resource file and (optionally) deploy the data service resource under Tomcat:
$ ant guiDeployResourceTomcat
To edit existing data service resource files and deploy data service resources under GT4 requires execution of the guiDeployResourceGT4 target.
| Back: Deploying Data Services | Up: Deploying OGSA-DAI WSRF Data Services and Data Service Resources | Next: Adding Data Service Resources to Data Services |
| © International Business Machines Corporation, 2005. | © The University of Edinburgh, 2005. |