[prev in list] [next in list] [prev in thread] [next in thread]
List: omniorb-list
Subject: Re: [omniORB] about corba object destroy
From: Slava Garelin <garelin () ukr ! net>
Date: 2002-03-24 11:58:11
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic