Multiple deployments

Multiple deployments are also known as multiple contexts. A context is the name that gets mapped to the document root of a web application. ArcGIS Spatial Data Server for Java can be deployed multiple times in the same application server. It also can be deployed on multiple application servers on the same machine.

Each context deployment must have its own services_repository. The connectionURL property in the javasds-app-config.properties file for each deployment must point to a different location and different services_repository.

NoteNote:

The javasds-app-config.properties file must be edited before each deployment of war file, since multiple deployments cannot share the same services_repository.

Deploying multiple times in the same application server

J2EE environment supports multiple contexts running in single server. You might do this if you have a development and a production version of a spatial data server, or if you host separate spatial data servers for different web applications.

Each application server implementation is slightly different. Be sure you understand how your application server implements multiple contexts. You must edit the javasds-app-config.properties file to specify a different services repository location before deploying each time. Additionally, each deployment must be authorized separately.

NoteNote:

If you use an Apache Tomcat web server and decide to make multiple copies of the war file so you can alter the javasds-app-config.properties file in each one to specify a different services repository location, be sure only one of the war files is in the $CATALINA_HOME directory when you deploy. Otherwise, all of the war files will be deployed at once when you start Tomcat.

Deploying on multiple application servers on the same machine

You might have different types of application servers on the same server or different versions of the same application server on the same server, such as for testing purposes. In those cases, make a copy of the arcgis.war file, edit the javasds-app-config.properties file in each, and deploy it in each application server. Each deployment must be authorized.

Related Topics

7/19/2012