We have discussed the different lifecycle events of the servo object and the CORBA object and the different ways of binding between the Servo object and the CORBA object, and now we study the classification of CORBA object from the application point of view. This will help us focus on application issues in the following discussion of the BOA and PoA orb object lifecycle.
1. Servo objects and states
The first classification is related to the state of the servo object. Basically, we can divide two kinds of completely different servo objects: Stateless servo object and stateful servo object.
2. Non-State servo object
Stateless servo objects are not associated with the state of any particular application in memory. This does not mean that a CORBA object implemented by a servo object must be stateless. For example, the state of a CORBA object can reside in the database and be accessed by the servo object to execute the request. In this case, the servo object is like a transient capsule (capsule), which delegates the incoming CORBA request to the database server by executing the SQL statement.
3. Stateful Servo Object
A stateful servo object is associated with the state of a particular application and can be accessed by the I-L operation implemented by the Servo object.