[omniORB] Destructor and Factories

Martin Renner Martin.Renner@pp-ulm.de
Thu, 10 Dec 1998 16:34:37 +0100


Hi.

>To destroy the server object you have to use the _boa()->dispose(obj)
>call, which will destroy the object when its server-local reference
>count hits zero.=20

Exactly this is my problem: When should I call dispose()?=20

My factory will produce about 10000 objects (no typo) and under normal
circumstances, the corba-server will be up for several months. So the
client has to show somehow that he doesn't want to use an object-reference
any longer (an object-reference which the server explicitly created for
this client).

One solution would be, that the client calls a oneway-method of this
object, which contains something like "_boa->dispose(this)", but that's
ugly, ugly!

Is there no other way, how I can delete objects, that the client doesn't
want to use any longer?



           __      =20
_________ / /\_________________________________________________
         / /  \    Martin Renner
        /_/ /\ \   PP-Systemhaus GmbH=20
      __\ \ \/ /   the client server company=20
     / /\\ \  /=20
    / /  \\ \ \    Address : Magirusstra=DFe 4, 89129 Langenau
   /_/ /\ \\ \ \   Phone   : +49 7345 9669-0
   \ \ \/ / \_\/   Fax     : +49 7345 9669-20
    \ \  /         mailto:Martin.Renner@pp-ulm.de
     \ \ \         http://www.pp-ulm.de
______\ \ \____________________________________________________
       \_\/