![]() | Consortium Solutions Middleware Forge MyObjectWeb | ||||||||
![]() |
|
![]() | ![]() OpenCCM
|
Table of ContentsThe OpenCCM 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 Objects (JDO) standard. RequirementsTo work correctly, the OpenCCM 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 server
The server initializes the Persistent State Service,
register a 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 this information is stored in the specified database. To run the client, execute the following command: $ bin/run_client
If you want to know how to use the PSS API, please have a look
to the demonstration source code (in the | ![]() |
||||||||||||||||||||||||
![]() | ![]() | ![]() Copyright © 1999-2003, ObjectWeb Consortium | contact | webmaster | Last modified at 2003-10-20 07:15 PM | ![]() |