| K2
Persistent State Service |
|
1. What is K2
Persistent State Service
|
| |
The K2 Persistent State Service
(PSS) is a fully compliant implementation of OMG's
specification for Persistent State Service. It
presents persistent information as storage objects
stored in storage homes. These storage homes are
in turn stored in datastores, which is an entity
that manages data, for example a database, a set
of files, a schema in a relational database.
|
|
2. What is Berkley
DB Connector
|
| |
Berkley DB Connector provides
PSS APIs to persist data in BerkleyDB Database.
|
|
3. What is Oracle
Connector
|
| |
Oracle Connector provides PSS
APIs to persist data in Oracle Database.
|
|
4. How to compile
PSDL File
|
| |
K2 Persistent Service Provides
PSDL Compiler (i.e. k2cidl), to generate persistent
code from the .psdl file.
|
| top |
|
5. While running
Client I get Error in loading configuration file
k2daemon.cfg
|
| |
K2 Persistent Service uses Logger
Service from K2 Server and it requires database_home_dir
for BerkleyDB Connector. This error can be corrected
by providing the configuration file ( from the
distribution) through command line using the option.(-K2PropFile=%K2_INSTALL_DIR%\k2\bin\k2pss.cfg)
|
|
6. While running
Client I get Error Table or View doesn't exist
|
| |
This Error is from Oracle Connector
when there is no table exist into the Oracle DataBase
which the K2 PSS Framework tries to access. Create
the Required Tables in the Oracle DataBase and
run the Client again.
|
|
7. Is Transaction
support available with this version
|
| |
The Current Release of K2 Persistent
State Service does not support transaction. As
a part of OTS integration with Container, the
PSS will be extended for transactional session.
|
|
8. What is a StorageObject
|
| |
A storage object is a PSDL construct
for defining storagetype structure or schemas.
It directly represents the state stored in a database.
The programmers can define a storage object and
the state members it represent and using the K2
PSDL compiler generate the code for persistence,
for a target database. Storage object instances
are managed by the storagehome instances that
are themselves managed by the catalogs..
|
|
9. Can I extends
K2 Persistent State Service for Custom DataBase
Persistence
|
| |
The K2 Persistent State Service
exposes number of interfaces to integrate with
third party database persistent mechanism. The
K2 Persistent State Service Framework takes care
of in memory caching and block commit features.
|
|
10. Is it necessary
to know CORBA for using K2 Persistent State Service
|
| |
No, It is not necessary that
the programmer need to know CORBA before using
this service, but the knowledge of PSDL Language
is required. A C++ Programmer can as well write
a .psdl file using the C++ types as state members.
|
|
11. Can I do
relational database mapping using K2 Persistent
State Service
|
| |
Yes, one can do a relational
mapping of tables using K2 Persistent State Service,
by defining a embedded StorageObject within one
another.
|