Consortium Solutions Middleware Forge MyObjectWeb | |||||||||
|
OpenCCM
|
Table of ContentsWarning: The OpenCCM User's Guide is now split into the following documents:
The OpenCCM's Persistent State ServiceOpenCCM 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. RequirementsTo work correctly, the OpenCCM's Persistent State Service (PSS) has the following mandatory requirements:
Demo1 configuration
Move to the Demo1.properties
You have to configure some properties to compile the demonstration.
Edit the
Server.java
You have to configure some constants in the Server source file.
Edit the
Compile the demonstrationTo compile the PSS demonstration, do the next steps:
This will:
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 demonstrationRun the serverThe 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: $ bin/run_server 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: $ bin/run_client
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 |