Exporting the REST handler
By default, the services you create and deploy in ArcGIS Server Manager are available through Manager's internal Web server. This, however, is not a recommended production environment. By exporting the REST handler into a standard .war file, you can deploy this as an application to an ESRI-supported J2EE server. To do this, follow these steps:
- In Manager, go to the Services tab.
- Click the Configure Services Handler panel.
- Click the Export tab.
- In the drop-down box for Export Web Services, choose REST Service.
- Enter any name for the WAR file that will be created.
- Enter the URL for the ArcGIS Web services handler if it has been exported and deployed to an external application server. Leave this field blank to use the out-of-the-box ArcGIS Web services handler. It is recommended that you use an external, production-quality application server to host the ArcGIS Web services handler.
- Enter the credentials of a user who is a member of the ArcGIS Server administrators group. Click Test Connection to validate the connection information.
- If using a distributed installation of ArcGIS Server, specify additional GIS servers for failover or round robin as necessary. This step is optional.
- To secure access to the exported REST handler, configure the security options. This step is optional.
- Click Export.
- A file download window will appear. Click Save.
- In the file dialog box, choose All Files for the file type and browse to the location where you wish to export the WAR file.
You will now be able to deploy this WAR file to any standard J2EE server. After deployment, you can verify it by viewing the Services Directory for the newly deployed REST handler. For example, if the name of the WAR file or instance was rest, you could browse to the following URL:
http://yourserver:<port>/rest/services
This would open the Services Directory for the newly deployed REST handler. You can also verify the REST admin page by opening the following URL:
http://yourserver:<port>/rest/admin