Creating a multisource Web ADF application


In this topic


About creating a multisource Web ADF application

The Simple ArcGIS for Server Web ADF Java platform application and Simple ArcIMS Web ADF Java platform application sample applications show how to create an application that uses one data source (either an ArcGIS server or an ArcIMS resource). You can extend these applications to consume multiple resources. While this topic uses ArcGIS for Server and an ArcIMS server in the sample applications, you can use other data sources by changing the appropriate resource and functionality declaration in faces-config.xml by replacing one of the resources with a resource available to you. For example, if you have an ArcGIS server, you can expose another server object as a Web service and use that as another resource. You can also point to one of the Web Map Servers (WMSs) on the Geography Network.
To extend your original application to consume multiple data sources, the following tasks are required:
Because the Web Application Developer Framework (ADF) is built to handle multiples resources, when you plug in additional resources and expose the appropriate functionality, the Web ADF uses them correctly.

Creating the application

To create a multisource application, go to your ArcGIS installation /java/web/web_map_application and use arcgisant to build a map viewing application. When you create the application, a new directory will be created called build that will contain a Java Web application and the same application in a Web Archive (WAR) file. When you examine the contents of faces-config.xml in the application, you'll see the multiple resources entries. All that is required to make a multisource Web application is to associate the multiple resources with the context, add the appropriate functionalities, and add any other auxiliary classes you may need, such as users and connection properties.

Using multiple resources

The following are some tips to consider when working with multiple resources:


See Also:

Configuring Web controls
Writing a JSP page
How to add a command or tool