tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Chamberlin" <ma...@easystreet.com>
Subject Re: HTTP Tunnel (a response please????)
Date Wed, 10 Apr 2002 04:42:26 GMT
Stuart I am using an HTTP Tunneling protocol  (for serialized Java objects) to handle communication
from my servlets back to my
applet front ends and it works great...   I designed my applets to maintain state information
and send this along with a request for
new data, from it's associated servlet, at regular intervals (which is settable by the applet
user for periods up to several minutes
between requests) and the connection "appears" to stay open for as long as the applet/browser
is running.... If you want a good
source of info on how to set up a applet/servlet pair that uses HTTP tunneling protocols,
get a copy of Core Servlets and Java
Server Pages by Marty Hall and published by Sun Microsystems.... He has a very good example
of how to set these up....

    Marc Chamberlin


----- Original Message -----
From: <rsequeira@transentric.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, April 09, 2002 6:24 AM
Subject: RE: HTTP Tunnel (a response please????)


>
> That's the way HTTP works. You browser connects to a web server when it
> makes a request. And once it gets a response, it disconnects. The
> connection, it creates, may be persistent (default with HTTP/1.1) though.
> But servers generally timeout after being idle for sometime. So what you
> are looking for in terms of consistent or persistent connections may not be
> guaranteed this way. You should consider using sessions in your servlet or
> jsp (that is if you just want to persist the user state) or maybe use
> sockets (may run into firewall/security issues)
>
> RS
>
>
>
>
>
> "Stuart Stephen" <swadge@swadge.co.uk> on 04/09/2002 07:41:22 AM
>
> Please respond to "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>
> To:   "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> cc:
>
> Subject:  RE: HTTP Tunnel (a response please????)
>
>
>
> -----Original Message-----
> From: Stuart Stephen [mailto:stuart.stephen@4en.com]
> Sent: 08 April 2002 22:16
> To: Tomcat Users List
> Subject: HTTP Tunnel
>
>
> Hi everybody,
>
> I'm looking to make an HTTP tunnel servlet or jsp page that will keep the
> user connected consistently rather than it disconnecting and re-connecting
> each time a request is sent. Could anyone help me out here?
>
> Stuart
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message