How to use
See How to use ArcGIS samples for help running the sample.
Add Source Task
- This sample shows how to write a task to dynamically add data source in your Java ADF 10.0 application.
- There are two ways to build the sample. You can either use ArcGIS Ant or Eclipse plugin. To use Ant, at command line, browse to %AGSDEVKITJAVA%\java\samples\addSourceTask, type arcgisant build, follow the command prompt to finish the build. There will be a directory called build under the sample root folder, inside there will be a war file. Deploy the war file into Tomcat.
- The other way to build the sample is to use Eclipse. Open Eclipse, File - New Project - ESRI Templates - Web ADF Samples.
- Choose the Add Source Task
- Go through the wizard to finish building the sample.
- Run the sample web application on server.
- You can also export the application as war file and deploy to other supported application server.
- Click the "Add Source" link on the left.
- Select the data source you want to add, the data source managed bean must already in your faces-config.xml.
- select the corresponding server information.
- Click "Connect" to fetch the service list to be added.
- Select the map service.
- Click "Add to map"
Development licensing | Deployment licensing |
---|---|
Server | Server |