[jacorb-developer] Removing a servant from JacORB after calling "servant_to_reference"

Nick Cross jacorb at goots.org
Tue Feb 14 15:56:55 CET 2012


You could call ref._release().

Can you provide a reproducible test case for the OutOfMemory?

Also, what version of JacORB are you using?

Regards

Nick


On 14/02/12 14:18, Andrew Bourgeois wrote:
> Hello
>
> the following sequence gives me an IOR and keeps the MyObj instance
> somewhere inside JacORB so that the IOR can be used at a later stage:
>
> MyObj myObj = new MyObj();
> org.omg.CORBA.Object ref = poa.servant_to_reference(myObj);
> org.omg.CORBA.Object href = MyObjHelper.narrow(ref);
> String ior = orb.object_to_string(href);
>
> My question:
> Can I somehow tell JacORB to discard "myObj"? References are kept forever
> in some Hastable (inside JacORB), and when creating a lot of entries, a
> wild OutOfMemory appears at some point. I want JacORB to forget about my
> object when I tell him to.
>
> Thank you for your help!
>
> Best regards
>
> Andrew
> _______________________________________________
> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer



More information about the jacorb-developer mailing list