[omniORB] Client crash notification & Smart Proxies

JohnSwanStone JohnSwanStone@hotmail.com
Sun, 17 Dec 2000 00:32:52 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_005C_01C067C0.E412E840
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I've a CORBA server which allocates servants for exclusive use for a =
given client.  I'd like to bind the lifetime of the servant to that of =
the client which uses it.  I've done this before in Orbix with =
smart-proxies which call a finished() method on the servant when they =
are about to be destroyed, however this approach fails when a client =
crashes.  Orbix has a client-crashed hook which I use to clean up the =
servants the client had allocated before it crashed.

My question are: =20

a) How do you create smart proxies in omniORB.  The only mention I've =
found refers to a section in the user's manual which doesn't exist =
anymore.

b) How can I ask omniORB to notify me when a client crashes ... I would =
also need to know which client crashed so I can clean up its resources.

Thanks,

John Swan-Stone



------=_NextPart_000_005C_01C067C0.E412E840
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've a CORBA server which allocates =
servants for=20
exclusive use for a given client.&nbsp; I'd like to bind the lifetime of =
the=20
servant to that of the client which uses it.&nbsp; I've done this before =
in=20
Orbix with smart-proxies which call a finished() method on the servant =
when they=20
are about to be destroyed, however this approach fails when a client=20
crashes.&nbsp; Orbix has a client-crashed hook which I use to clean up =
the=20
servants the client had allocated before it crashed.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My question&nbsp;are:&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>a) How do you create smart proxies in=20
omniORB.&nbsp; The only mention I've found refers to a section in the =
user's=20
manual which doesn't exist anymore.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>b) How can I ask omniORB to notify me =
when a client=20
crashes ... I would also need to know which client crashed so I can =
clean up its=20
resources.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>John Swan-Stone</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_005C_01C067C0.E412E840--