Hessian-based Cayenne Web Service is a regular Java web application that contains Cayenne mapping file and persistent objects. What makes it a web service is a HessianServlet mapped via web.xml that handles requests from Cayenne Client Tier applications.
|Client tier Java classes have to be present on the server together with server DataObjects. So you'll end up with two sets of objects mapped to the same set of entities. Hopefully we will get rid of this inconvenience in the future releases.|
Cayenne service configuration is done via web.xml:
- (optional) Configuring session timout other than the default (timeout value is in minutes):
- Declaring a HessianServlet
- (Optional) Configuring HTTP basic authentication: