Server Programming.

With Server programming, there is much more involvement with the layers and data sources than there is with display programming.  If you wish to generate images on the server and have them displayed with some client application, there are several ways to do this.

1. Run the GISToolkitServer and capture the output to a file. (This is what I do).
2. Build the layers and generate images from them.  There is an example of this in the server package with the ImageGenerator class.

In the second case, the steps to take are as follows.
1. Create a DataSource for the desired data layer.
2. Create a new Layer object (display package) with this DataSource.
3. Set the desired Renderers, Labelers, and Shader for the rendering of the data.
4. Create a new java.awt.Image.
5. Create a converter with the extents of the new image, and the world extents you wish to render.
6. Call the drawLayer() method with the graphics context of the  image, and the converter.
7. Repeat steps 1 through 6 for as many layers as you have.
8. Write the image to a file with JAI, JIMI, or the javax.imageio package.

A step by step example application will be appended eventually.