Remote Object Persistence Quick Start

This tutorial is an extension of the Cayenne tutorial, and shows 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 GUI application (Swing, SWT, etc). We are showing the command-line example to avoid dealing with UI details and concentrate on Cayenne API. Just like the Cayenne tutorial, this one uses Maven, Eclipse and Derby. Full tutorial source code in a form of Eclipse project is distributed with Cayenne (see "tutorials/tutorial-rop-server" and "tutorials/tutorial-rop-client" folders).

Sections

  1. Prerequisites...
  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...