CORBA Programming Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Activates an object, sets the ORB and the POA to the proper state, sets the output parameter stroid
, and returns an object reference to the activated object.
Object
start_persistent_systemid
(
in PortableServer::Servant servant,
in CORBA::RepositoryId rep_id,
out string stroid)
raises ( ServantAlreadyActive );
CORBA::Object_ptr
start_persistent_systemid
(
PortableServer::Servant servant,
const char* rep_id,
char*& stroid);
The servant is already being used for a callback. A servant can be used only for a callback with a single ObjectId
. To receive callbacks on objects containing different ObjectIds
, you must create different servants and activate them separately. The same servant can be reused only if a stop
operation tells the system to stop using the servant for its original ObjectId
.
This operation performs the following actions:
Servant
supplied to service objects of the type rep_id
, using an ObjectId
generated by the system. stroid
to the stringified version of an ObjectId
assigned by the system. rep_id
and for the same ObjectId
, the servant will accept requests made on that same object reference. Since the ObjectId
was generated by the system, the application has to save that ObjectId
.An object reference created with the ObjectId
generated by the system and the rep_id
provided by the user. The object reference will need to be converted to a specific object type by invoking the _narrow()
operation defined for the specific object. The caller is responsible for releasing the object when the conversion is done.
![]() ![]() |
![]() |
![]() |