I have opened an ObjectInput/OutputStreams between a java client and a servlet.
I can send objects between them. Sometimes the servlet takes a while to respond to the request and the client polls until EOFException is not thrown on ObjectInputStream.readObject()
Is there anyway of using socket blocking so I don't have to poll? i.e. the readObject will not return until an object is found