Re: object existence - PLEASE HELP ME!
- From: Diego Sevilla Ruiz <dsevilla ditec um es>
- To: orbit-list gnome org
- Subject: Re: object existence - PLEASE HELP ME!
- Date: Wed, 10 Oct 2001 18:25:11 +0200
Hi, Samuele:
Samuele Gallazzi wrote:
> Hi all,
>
> I've a question: if I create an object and I bind it with the CosNaming from
> a skel-impl method, does this object exist when I use it from another
> method?
The object's life cycle is determined by the POA the object is registered in.
However, you can provide objects with a "destroy" operation that automatically
remove themselves from the POA.
So, the answer is yes: it exists. Object life cycle is not determined by the
method/object in which it is created.
>
> Or is it dead beacause it ends when the method (the one that created the
> object) terminates?
No. Method termination has nothing to do with object life cycle.
>
> It's quite confuse... I hope anyone'll understand me...
>
I think I understand you. I could explain it with somewhat more
detail. However, first of all, you should have clear the difference between
"reference" and "object" in the CORBA world. Without those concepts clear, it
is difficult to explain well what's happening.
>
> And does the CORBA_Object_Release function definitly destroy the object?
No. It indicates that you are not interested any more in the reference on which
you applicate this function. References are remote representatives (or
proxies) of the remote CORBA object.
> Is
> it the only method to destroy an object?
>
Object destruction must be carried out in the server and dealing with the POA
in which you registered the object.
>
> Thanks for any suggestion
> Samuele
>
Thanks to you. You should read all above and then ask what exactly you
don't understand right now...
Best regards.
diego.
--
Diego Sevilla Ruiz -- http://ditec.um.es/~dsevilla/ -- dsevilla@um.es
Dep. Ingeniería y Tecnología de Computadores, Facultad de Informática
Univ.de Murcia,Campus Espinardo,30080 Murcia (SPAIN),Tel.+34968367658
lynx -dump ditec.um.es/~dsevilla/face |uncompface | ikon2xbm |display
PGP: http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xC9B964B7
perl -e'$_="\x4\@FLe\x2&B";for(/../g){print unpack("b*",$_),"\n"}'|tr 01 " #"
(lambda x,f=lambda x,f:x and x[-1]+f(x[:-1],f):f(x,f))('se.mu@allivesd')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]