If you have deployed a configurable data service then you can make changes to the role maps file of any data service resources exposed by that data service. You can then request that the data service resource exposed by the service read in and use the updated role maps.
To update the role maps that a data service resource exposed by a specific data service uses:
etc/ogsadai_wsrf/ResourceID/DatabaseRoles.xmlwhere ResourceID is the ID of the data service resource.
webapps/wsrf/WEB-INF/etc/ogsadai_wsrf/ResourceID/DatabaseRoles.xmlwhere ResourceID is the ID of the data service resource.
$ ant dataServiceClient -Ddai.url=SERVICE-URL
-Ddai.resource.id=RESOURCE-ID -Ddai.action=updateRoleMaps
where
$ ant dataServiceClient -Ddai.url=http://localhost:8080/wsrf/services/ogsadai/MyDataService -Ddai.resource.id=MySQLResource -Ddai.action=updateRoleMaps
[echo] Updating roleMaps for resource MySQLResource... [java] Contacting ... http://localhost:8080/wsrf/services/ogsadai/DataService [java] Service version: OGSA-DAI WSRF 1.0 [java] Number of resources: 1 [java] Resource: MySQLResource [java] Data Service Resource: MySQLResource [java] About to invoke UpdateRoleMaps... [java] UpdateRoleMaps completed!
[echo] Updating roleMaps for resource MySQLResource...
...
[java] About to invoke UpdateRoleMaps...
[java] This service does not support the updateRoleMaps operation!
Then the data service is not configurable i.e. it does not allow data
service resources to dynamically update their role maps.
| Back: Removing Data Service Resources from Data Services | Up: Deploying OGSA-DAI WSRF Data Services and Data Service Resources | |
| © International Business Machines Corporation, 2005. | © The University of Edinburgh, 2005. |