|OpenCCM - The OpenCCM's Persistent State Service|
Table of Contents
Warning: The OpenCCM User's Guide is now split into the following documents:
The OpenCCM's Persistent State Service
OpenCCM includes an implementation of the OMG Persistent State Service (PSS) Specification (available as the OMG TC document formal/02-09-06). This PSS implementation provides a compiler for the OMG Persistent State Definition Language (PSDL) and a runtime based on the Java Data Object (JDO) standard.
To work correctly, the OpenCCM's Persistent State Service (PSS) has the following mandatory requirements:
Move to the
You have to configure some properties to compile the demonstration.
You have to configure some constants in the Server source file.
To compile the PSS demonstration, do the next steps:
To create your database schema, i.e. create tables in your database, you can run the following command on Unix systems:
$ build.sh build_schema
or on Windows systems:
$ build.bat build_schema
Run the server
The server initializes the Persistent State Service, register a Form instance in the Naming Service and then wait for requests.
To run the server, execute the following command:
Run the client
The client retrieves the
Select a choice : 0. Quit 1. Create a new person 2. Remove a person 3. Display all person's data
You can add a person, display its data or remove it. All these information are stored in the specified database.
To run the client, execute the following command:
If you want to know how to use a the PSS API, please have a look
to the demonstration source code (in the
|Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster | Last modified at 2005-07-07 02:04 PM|