On Mon, 2009-03-16 at 13:33 +0000, James Abley wrote: > 2009/3/13 saravanan <[email protected]>: > > > > Hi, > > > > We have a client, webserver and server based application(3 entities). > > We open ingress connection from server side using HttpConnection objects > > with the webserver. The ingress connection is used to getRequest from the > > HttpConnection's inputStream(of Tomcat). Tomcat will create socket object > > and does a relay of request from Client to server and vice versa. > > > > At server side For Ingress, we get InputStream of HttpConnection object > > and do a readObject() for receiving request. > > The inputStream we use is ObjectInputStream.readObj(). > > > > The issue is when machine were webserver(Tomcat) is running gets > > disconnected from network/network cable is pulled out, we dont receive any > > socketException or IOException in ObjectInputStream.readObj(). Thus we are > > unable to recognize that Tomcat is down. > > > > Could you please assist me to resolve this. > > > > Regards > > Saravanan > > > > This sounds more like a question for the user list than the developer > list? Please continue any further discussion on the user list. I've > copied it in. > > Also, have you looked at the HttpClient API to set a timeout on the > connection? I've found that tends to be a very useful thing to think > about generally. > > Cheers, > > James >
I am not sure taking this question to the user list will help much, as this question does not seem to be related to HttpComponents in any way. Oleg > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
