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
- Prerequisites...
- Starting client project...
- Setting up Hessian web service...
- Porting existing code to connect to a web service instead of a database...
- Adding BASIC authentication...