How can I know if a server is not reachable

González Muñoz, Gerardo <[email protected]> Tue, 19 Jul 2005 11:44:22 +0200
Newsgroups gmane.comp.corba.orbacus
Message-ID <[email protected]>
Hi,
    I have working an master app sending messages to several apps which are listening
 
My problem is that if an listener app is not reachable because a net problem or other problem the call to that app never ends o it is very long and the master app becomes to store pending messages and finally it goes to an Out of Memory
 
The master  gets the reference to the listener throw a CORBA call,  listeners send a reference of a CORBA server to the master 
     e.g. :


interface iListener {
    void addMsg( in string msg );
}
 

interface iMaster {
    void addListener( in iListener listener );
}

            master.addListener( xxxxx ) ;
            where xxxxx is a server  of class iListener
 
Is there any method to know if that reference is active or reachable ?
 
A method to round the problem could be set a TimeOut to the object, I know how to put TimeOuts on servers and on clients generated from 
orb.string_to_object("corbaloc......."), but I don't know doit on Objects got from a call like the previous addListener(...) 
 
Thanks
 
 
Gerardo González Muñoz 
Transportes y Tráfico 

 

C/ Mar Egeo, 4 Pol. Ind. 1 
28850 - San Fernando de Henares - Madrid (ESPAÑA) 
Tel.: +34 91 626 87 25 
[email protected] 
www.indra.es <http://www.indra.es/>

_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html
logoIndra.gif (image/gif, 2.4 KB) - not displayed