[omniORB] Client crash notification & Smart Proxies

JohnSwanStone JohnSwanStone@hotmail.com
Wed, 20 Dec 2000 14:04:39 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0031_01C06A8D.CB0AF5C0
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 questions are: =20
=20
a) How do you create smart proxies in omniORB.  The only info I've found =
refers to a section in the user's manual which doesn't have that =
information anymore (Section 8.2).

b) How can I ask omniORB to notify me when a client crashes ... I would =
also need a client identifier so I could look up the and release the =
resources that client was using.

Thanks,

John Swan-Stone



------=_NextPart_000_0031_01C06A8D.CB0AF5C0
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>
<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 questions&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 info I've found refers to a section in the =
user's manual=20
which doesn't have that information anymore (Section 8.2).</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 a client identifier so I could look up the =
and=20
release the resources that client was using.</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></FONT></DIV></BODY></HTML>

------=_NextPart_000_0031_01C06A8D.CB0AF5C0--