Defining where the services repository gets created
ArcGIS Spatial Data Server for Java creates a services repository directory (services_repository) when installed. The services repository stores metadata for the spatial data server. By default, the services repository is created in the user home directory to guarantee read and write access.
The services_repository is created when ArcGIS Spatial Data Server (the arcgis.war file) is deployed. Therefore, to change the location where the services_repository is created, you must edit the javasds-app-config.properties file before you deploy ArcGIS Spatial Data Server. The most common reason for changing the location of the services_repository is to support multiple contexts on the same server; each context must have its own services_repository.
- See Editing javasds-app-config.properties for instructions to access the javasds-app-config.properties file.
- Once you have opened the file, uncomment the rep.connectionURL in the javasds-app-config.properties and define an alternate directory.
In the following example, the directory location is changed to mytest_sds:
### Default location for services repository is in <USER_HOME>/.sds_arcgis/services_repository ### You can override the default location by modifying the connectionURL parameter ### User must have write access in the connectionURL location ### Example below starts at root dir, e.g. C:\ on Windows. rep.connectionURL=jdbc:derby:/.mytest_sds/services_repository
For examples of connection URLs, see the Apache documentation at http://db.apache.org/derby/docs/dev/devguide/rdevdvlp22102.html#rdevdvlp22102.