Cayenne User Documentation
Remote Object Persistence Quick Start
Tutorials for Cayenne version 3.0 are still work in progress. Please use the tutorials from Cayenne 2.0 until we bring 3.0 version in sync with the code

Remote Object Persistence Quick Start

This tutorial is an extension of a Tutorial Cayenne tutorial, showing how to deploy an existing mapping project as a Cayenne web service, and then write a command-line client to access the service. Note that in most real applications the client will be a Swing or SWT GUI application. We are showing the command line example to avoid dealing with UI details and concentrate on Cayenne API.

Full tutorial source code in a form of Eclipse project is distributed with Cayenne (see "src/tutorials/quick-start-rop" folder).

Sections

  1. Preparation...
  2. Starting client project...
  3. Setting up Hessian web service...
  4. Porting existing code to connect to a web service instead of a database...
  5. Adding BASIC authentication...
.