[omniORB] about corba object destroy

Slava Garelin garelin@ukr.net
Sun, 24 Mar 2002 13:58:11 +0200


On Sunday 24 March 2002 02:17, zhang ji wrote:
> Hi all,
>
> My question is how to implement destroy() for CORBA
> object with all default POA policy under RootPoa.
> Below is one of possible interface.
>
> interface test{
>    void useit();
>    void destroy();
> }
>
> I use the default RootPoa with all the default policy.
> Then I implement the test_impl::destroy() as below:
>
> 
Try that:

test_impl::destroy (){
PortableServer::ObjectId_var id = Poa->servant_to_id(this);
Poa->deactivate_object(id.in());
}


-- 
Slava Garelin