Re: How can I know if a server is not reachable
David Weir <[email protected]> Wed, 27 Jul 2005 16:58:22 -0230
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Organization | Object Oriented Concepts, Inc. - An IONA Company |
| Message-ID | <[email protected]> |
Hello Gerardo,
On Tue, Jul 19, 2005 at 11:44:22AM +0200, González Muñoz, Gerardo wrote:
> 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 end
> so 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
I apologize for the delay in responding to your question. Have you had
any luck with this?
I would try setting the "ooc.orb.client_timeout" property for your
master application. This will allow your master application to timeout
after a specified length of time if there is no response from a
listener. Setting this property will actually set the timeout for all
requests made by your master app (i.e. when it is acting as a client),
so there is no need to set it at the object level.
Cheers,
Dave
--
David Weir
Team Orbacus - Your CORBA Source
E-Mail: [email protected]
WWW: http://www.orbacus.com
_______________________________________________
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