Examples

We have written some examples about JSO. They are available in the package net.sf.jso.examples. To run these examples you should:

  1. Create an empty database.
  2. Create an user and grant permissions to this database.
  3. Modify the file controller.properties supplied with JSO distribution, filling it with your configuration.
  4. Put in your classpath:
  5. Optionally you can use the logging.properties file, also supplied with JSO distribution, to control logging configuration and avoid undesirable messages. -D command line option of Java interpreter must be used to make property java.util.logging.config.file point to this file.
  6. Run the example of your choice...
Some of this work has been done for you. Modify the run.bat/run.sh file supplied with JSO according to you environment. Then call
run <some class>
at the command line.

Take a look at the *.ex to have an idea of how to modify these files.

Banking

This example is a very simple banking application with four programs:

Various

This example contains some unrelated classes demonstrating some of the JSO's features: