Exposing Data Service Resources via Data Services via the Command-line
To expose data service resources via data services using the command-line:
  - 
    Run the following command from within the OGSA-DAI WSRF binary
    distribution directory:
$ ant exposeResource -Ddai.container=/path/to/Web/services/container
  -Ddai.service.name=service/name 
  -Ddai.resource.id=ResourceID
    
      - 
        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 
        dai.service.name=ogsadai/DataService 
        specifies a data service whose URL will be
        http://HOST:PORT/wsrf/services/ogsadai/DataService. 
      
 
      - 
        dai.resource.id= is the ID of the
        data service resource that the data service is to expose. This must be 
        the name of a data service resource which you have already deployed as
        described on the previous 
        page. For example 
        dai.resource.id=MySQLResource.
      
 
    
   
  - 
    You will need to shutdown and restart your Web services container 
    before clients are able to access the new data service resource 
    via the data service.
  
 
  - 
    After restarting your container, you can test whether the new data
    service resource was successfully exposed using 
    the 
    ListResourcesClient client.