Creating a shared memory object
This recipe shows how to store the instances of your classes in the shared memory of the application server. A number of programs may access these objects that reside on the application server shared memory.
Two classes are necessary for shared memory, namely the
area class and the
area root class. The
root class is necessary for storing (encapsulating) the data that are to be stored in the shared memory. An
area class may comprise of various instances that may consist of a number of versions.
An important concept shown in this recipe is the
CREATE OBJECT statement with the addition
AREA HANDLE. This will create the object in the application server that is shared memory pointed to by the area handle