Deploying Data Services via the Command-line
To deploy a data service:
-
Run the following command from within the OGSA-DAI WSRF binary
distribution directory:
$ ant deployService -Ddai.container=/path/to/Web/services/container
-Ddai.service.name=service/name
-
dai.container specifies the
path to your Web services container. Alternatively you can define an
OGSADAI_CONTAINER environmental variable to
hold this value.
-
dai.service.name specifies the
name of the service. For example:
-Ddai.service.name=ogsadai/DataService
This specifies a data service whose URL will be
http://HOST:PORT/wsrf/services/ogsadai/DataService.
-
Providing the flag
-Ddai.service.config=y requests that
the data service support dynamic service configuration. See the
configurable
data services and exposing
data service resources via data services pages for more information.
-
You also have the option of specifying the support for concurrent
requests that each resource exposed by the service will provide. This can be
done via the following flags:
-
-Ddai.max.requests=N specifies the
number of requests that each resource can run concurrently. If this
flag is ommited the default of 10 is used.
-
-Ddai.max.queue.length=N specifies
the number of requests that each resource can queue if its maximum
number of concurrent requests has been reached. Once an existing
request completes the next request in the queue will start
executing. If this flag is ommited the default of 20 is used.
-
The data service will be deployed onto your Web services container.
You will need to shutdown and restart your container before clients
are able to access the new data service.