Cayenne-AXIS Server Ant Scripts

This folder contains scripts which can be used to perform building and administrating tasks related to cayenne-axis-server project.

Quick start

  1. Use ../cayenne-config/*.driver.xml file to set db connection parameters.
  2. Use dbgen.xml to generate database structure.
  3. Use build.xml to build web app.
  4. Use start-web-container.xml to start embedded Winstone Web Container.
  5. Go to "http://localhost:8080/Cayenne" or start one of examples in "cayenne-axis-test-client project".

Ant files

  • build.xml
  • Main Ant project - building web app. Depending on configuration (see further) building implies:

    1. Cleaning.
    2. Copying cayenne-axis.jar (and dependencies) from "cayenne-axis" project.
    3. Generating client-side cayenne-axis java distributive and placing it for downloading from web app (see ../build/clients/java).
    4. Reencoding i18n property files by native2ascii. Currently only english available.
    5. Copying needed server libraries to ../build/WEB-INF/lib folder.
    6. Creating web application archive (war).
    7. Deployment to local server folder.
    8. Restarting web app at the server.
  • dbgen.xml
  • Data base generation. Reads db connection info from Cayenne configuration files and generates database structure (as defined in data map).

  • start-web-container.xml, stop-web-container.xml
  • There is Winstone Web Container .jar file in lib/ folder. It is very small servlet container (350kb). It can be used for quick testing web app. "Start-web-container.xml" script will start Winstone using ../build/ dir as webroot. "Stop-web-container.xml" script will send shutdown request to the server. Also restarting web app at Winstone supported by build.xml (see "Configuration"). JSP not supported by this server without addons. So some pages may be not visible. (use Tomcat or something else if JSP's are strictly needed).

    Configuration.

    All configuration properties can be set in "*.properties.xml" files in "properties" folder:

    See property files contents for more comments.