Custom Resource


Purpose This sample shows how to add your own custom data source. This is done by implementing the functionalities that this new data source supports and integrate it to the faces-config.xml file.

How to use

See How to use ArcGIS samples for help running the sample.

Custom Resource
  1. This sample shows how to add your own custom data source. This is done by implementing the functionalities that this new data source supports and integrate it to the faces-config.xml file.
  2. Create and start an ArcGIS map server object. You may use any data, map configuration file, and server object name. For example, create a server object named 'usa' from the map configuration file at %AGSDEVKITJAVA%\java\samples\data\mxds\usa.mxd.
  3. 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\customResource, 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.
  4. The other way to build the sample is to use Eclipse. Open Eclipse, File - New Project - ESRI Templates - Web ADF Samples.
  5. Choose the Add Source Task sample
  6. Go through the wizard to finish building the sample.
  7. Run the sample web application on server.
  8. You can also export the application as war file and deploy to other supported application server.
  9. After deployment access the sample by typing the URL (e.g. http://[host]:[port]/[samplename]) in a web browser.
  10. Check off the MyResource in the TOC, the grid layer and coordinate will be gone.
  11. Now check on the MyResource layer, the grid and coordinate show up.





Development licensing Deployment licensing
Server Server