This tutorial is an extension of a Quick Start 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).
Tutorial Contents
- Preparation...
- Starting client project...
- Setting up Hessian web service...
- Porting existing code to connnect to a web service instead of a database...
- Adding BASIC authentication...
Sections
- Remote Object Persistence Tutorial Setup
- Remote Object Persistence Tutorial Client Project
- Remote Object Persistence Tutorial WebService
- Remote Object Persistence Tutorial Client Code
- Remote Object Persistence Tutorial Authentication