[Ace-users] [tao-users] TAO/CORBA: Way to find out if a CORBA client is still alive?

Johnny Willemsen jwillemsen at remedy.nl
Fri Oct 12 08:28:51 CDT 2007


Hi,

You will need to make some server in your client and you can then use
_validate_connection() as ping method.

Regards,

Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl  

*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl ***
*** Commercial service and support for ACE/TAO/CIAO             ***
*** See http://www.theaceorb.nl/en/support.html                 ***

"antred" <NutJob at gmx.net> wrote in message
news:<1191936610.995328.260160 at y42g2000hsy.googlegroups.com>...
> Hello,
> 
> Does anyone know of a way to check (on the server side, obviously) if
> a CORBA client is still alive?  I have a CORBA servers that takes
> measures to ensure that only CORBA client at a time can do certain
> things. I'm using a thread-per-connection model and store the thread
> ID of a the client thread that is deemed the current 'owner' of a lock
> which must be acquired before some of the operations provided by my
> server can be called. When another client thread tries to acquire this
> lock I want to check if the current owner is still connected or not.
> Is there a way to do this? I've head of the _non_existent() function
> but I was told that this requires the clients to implement a CORBA
> server, too, and this is simply not possible in my case. Thanks in
> advance for any helpful replies!
> 
> ant
> 



More information about the Ace-users mailing list