To deploy a data service resource:
$ ant deployResource -Ddai.container=/path/to/Web/services/container -Ddai.resource.file=DAI-SERVICE-RESOURCE-FILE
$ ant deployResource -Ddai.resource.file=my.config -Ddai.container=/path/to/Web/services/container ... [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!You may see warnings of the type:
[copy] Warning: Could not find file /home/user/ogsadai-wsrf-2.2/${dai.driver.jars.0} to copy.You can ignore these.
$ ant deployResource -Ddai.container=/path/to/Web/services/container -Ddai.resource.file=my.config -Ddata.resource.id=AnotherResource
$ ant deployResource -Ddai.container=/path/to/Web/services/container -Ddai.resource.file=my.config -Ddata.resource.id=YetAnotherResource -Ddai.data.resource.uri=jdbc:mysql://myhost:8080/some/other/DB
Back: Deploying Data Service Resources | Up: Deploying Data Services and Data Service Resources | Next: Exposing Data Service Resources via Data Services |
© International Business Machines Corporation, 2002-2006 | © The University of Edinburgh, 2002-2006 |