定义服务资源库的创建位置

ArcGIS Spatial Data Server for Java 在安装时将创建服务资源库目录 (services_repository)。服务资源库存储了空间数据服务器的元数据。默认情况下,为保证读写权限,服务资源库创建在用户主目录下。

services_repository 在部署 ArcGIS Spatial Data Server(arcgis.war 文件)时创建。因此,要更改 services_repository 的创建位置,必须在部署 ArcGIS Spatial Data Server 之前编辑 javasds-app-config.properties 文件。更改 services_repository 位置的最常见原因是为了在同一服务器上支持多个上下文;每个上下文都必须拥有其自己的 services_repository。

步骤:
  1. 有关访问 javasds-app-config.properties 文件的说明,请参阅编辑 javasds-app-config.properties
  2. 打开文件后,在 javasds-app-config.properties 中取消 rep.connectionURL 的注释,并定义一个替代目录。

    在下面的示例中,目录位置改为 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
    

    有关连接 URL 的示例,请参见 http://db.apache.org/derby/docs/dev/devguide/rdevdvlp22102.html#rdevdvlp22102 下的 Apache 文档。

9/15/2013