Hosted data storage configuration |
Data uploaded to iPortal supports file storage (FILE), FTP storage, and SuperMap iServer DataStore storage. By default, FILE is used. SuperMap iPortal 8C SP2 and newer versions provide a visual page for host data storage configuration that enables you to publish hosted data as a service without any configuration in the managed server.
Data uploaded to iPortal will use the FILE method by default. The default storage path is [SuperMap iPortal installation directory]/webapps/iportal/WEB-INF/iportaldata/uploadeddata folder. You can modify the storage path following the steps below, or you can use the default storage path directly. You can publish the data as a service by specifying a host server. The version of the host server supported by the file storage method is SuperMap iServer 7C SP1 and higher versions.
Log into iPortal home page as an administrator, click Manage->Server Management->Host Server, select the Host Data Storage Configuration tab to perform FILE storage configuration:
After you finish configuration above, you can click the "Verify Validity" button. If the configuration is valid, the system will give a prompt message: "The settings are valid, you can connect to the data storage server". You can then click the "Save" button.
Data uploaded to iPortal supports FTP shared storage, which enables more convenient product upgrades and maintenance. At this point, you need to build the FTP server to implement host data sharing and perform the following FTP storage configuration.
The version of the host server supported by the FTP storage method is SuperMap iServer 7C SP1 and higher versions. If you are using SuperMap iPortal 8C SP2, and the specified host server is SuperMap iServer 8C or 8C SP1. After FTP storage configuration, you still need to perform compatibility configuration.
Log into iPortal home page as an administrator, click Manage->Server Management->Host Server, select the Host Data Storage Configuration tab to perform FTP storage configuration:
After you finish the configuration above, you can click the "Verify Validity" button. If the configuration is valid, the system will give a prompt message: "The settings are valid, you can connect to the data storage server". You can then click the "Save" button.
If you are using SuperMap iPortal 8C SP2 and higher versions, but the specified host server is SuperMap iServer 8C or 8C SP1. After completing the above FTP storage configuration, you need to perform the compatibility configuration.
Compatibility configuration means that after FTP configuration is completed on the iPortal host data storage configuration page, you also need to manually modify the configuration file iportal-storage.xml in the iServer node for Publishing service. The configuration file is located in [SuperMap iServer installation directory]/webapps/iserver/WEB-INF directory. You can comment off or delete the item for setting storage disk root directory, with the code below:
<bean id="storage" class="com.supermap.iportal.web.utils.filestorage.FileStorageImpl">
<property name="basePath" value="./WEB-INF/iportaldata/uploadeddata"></property>
</bean>
Expand the comments for the FTP storage class configuration information to set the FTP address, port, and access account and password. You need to make sure the information to be consistent with the configuration information of the host data storage configuration page. E.g.:
<bean id="storage" class="com.supermap.iportal.web.utils.filestorage.FTPStorageImpl">
<property name="ftpServerHost" value="192.168.120.144"></property>
<property name="ftpServerPort" value="21"></property>
<property name="ftpServerAccount" value="icloud"></property>
<property name="ftpServerPassword" value="icloud"></property>
</bean>
Data uploaded to iPortal supports iServer DataStore storage, and data uploaded to the portal are binary data that can be stored in iServer DataStore. iServer DataStore is an application. About iServer DataStore configuration, please refer to DataStore Configuration and management. After iServer DataStore has been configured and started successfully, you still need to perform the following configuration in iPortal:
Log into iPortal home page as an administrator, click Manage->Server Management->Host Server, select the Host Data Storage Configuration tab to perform DataStore host data storage configuration:
After you finish the configuration above, you can click the "Verify Validity" button. If the configuration is valid, the system will give a prompt message: "The settings are valid, you can connect to the data storage server". You can then click the "Save" button.
You can modify the storage configuration of the host data directly, then click Validate Validation and Save.
If the specified host server is SuperMap iServer 8C or 8C SP1, you still need to manually modify the appropriate configuration information on the host server after you modify the FTP storage configuration on the Host data storage configuration page. For details, please refer to Compatibility configuration.
Note: After you change the file storage path, FTP server, or DataStore storage, the uploaded data will not appear in the portal. Please carefully change the file storage path, FTP server, and DataStore storage.
When you finish the host data storage configuration, you can upload data on the My Data page for data host.
If you want to publish the host data as a service, you need to complete the Registered service proxy configuration (for iPortal 8C SP2 and higher versions, the registration service proxy configuration is optional), and then add the server and designate it as a host server for publishing host data as a service.
Note: If you are using DataStore storage, you also need to add host server to publish the host data as service. Of course, you can add iServer associated with DataStore as host server.