[omniORB] object deactivation
Renzo Tomaselli
renzo.tomaselli@tecnotp.it
Mon, 18 Jun 2001 20:34:37 +0200
Hi all,
just a quick issue: the old (2.8 BOA) way do have servants killing
themselves was to call _dispose() from a method - say close() - as invoked
by a client.
Is it safe to do the equivalent with POA when a servant inherits from
RefCountServantBase, e.g.:
Foo::close() {
PortableServer::POA_var poa = _default_POA();
PortableServer::ObjectId_var id = poa->servant_to_id(this);
poa->deactivate_object(id);
}
since after deactivation this servant itself is no longer existing ?
Or is there any conflict or better solution ?
Thanks,
Renzo Tomaselli
---------------------------------------------------------------------------
TecnoTP s.n.c. Special Information System Design
Maso Pelauchi I38050 Ronchi Valsugana, Trento TN ITALY
Tel. +39 0461 773164 Fax. +39 0461 771514
e-mail: renzo.tomaselli@tecnotp.it
---------------------------------------------------------------------------