Have you thought of maybe having the servlet create a ServerSocket in the init()
method and having your applet connect with your server on that socket port instead of
using the web server+HttpServletRequest mechanism? You would have to implement a
multi-threading mechanims for dealing with multiple requests but I would venture a
guess there is free code out there that does that. By implementing your own socket
listening servlet, you bypass the connection properties imposed by HTTP via the web
server and thus the servlet runner by proxy.
BTW, I thought most web servers today implement Keep Alive automatically unless
directed otherwise. Thus, the server you are using is probably doing keep alive on
http. One issue may be that if there is a pause in the data being passed (as I would
imagine would be the case in your system), it might exceed the timeout set by your
server for http keep alive connections.
--Mike H
*********** REPLY SEPARATOR ***********
On 11/24/1999 at 2:03 PM John Rodriguez wrote:
>Hi all,
>
>Is it possible to use keep-alive ("connection","Keep-Alive") with servlets?
>
>I have an applet and servlet that communicate using serialized objects. I
>would like the socket which the HttpServletRequest/HttpServletResponse uses
>to stay open. I have tried various ways but have not been able to get this
>to work. Is this possible with servlets? If so, can you point me to a code
>example?
>
>If there is a way to get this working, will I have trouble with proxy
>servers?
>
>Thanks in advance,
>John Rodriguez
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html