I have an applet from witch I'm connecting to a web server every 2 seconds using an URLConnection for retreiving some informations. But every time I connect to the server a new connection is created using a different port. That will be a big overhead for the server. How can retrieve the information I want using the same connection?
Are you closing the connection? Then no. The only thing I can see is using a multi-threaded server model to handle all the connections and do't disonect till the user leaves the page.
The idea is that I want to use the same socket connection on the client side and on the web server side to use the same session. So every 2 seconds when the applet try to retreive the information to use the same connection
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad: