--- Roland Weber <[EMAIL PROTECTED]> wrote:

> Hi Jesper,
> 
> "Jesper Sahner" <[EMAIL PROTECTED]> wrote on
> 06.02.2006 12:18:11:
> 
> > Does HttpClient support "server push" and "client
> pull"?
> 
> I've never heard these terms in combination with
> HTTP.
> RFC 2616 mentions neither "push" nor "pull" in it's
> 175 pages.
> 
> HTTP is a client/server protocol. The client is the
> one that
> opens connections and sends requests, the server is
> the one
> sending responses back over the connection opened by
> the client.
> 
> cheers,
>   Roland
Yes to simulate server push you have to have your
client check some status every so often to determine
if it needs to get something or not.  You can also use
a status mechanism where the client asks the server to
do something, the server runs some process in the
backend (thread or separate process), and the client
checks the status of this process every so often.  Not
too hard to implement.  I've done this with quite a
few things, and as long as state is used well in the
client and server (store things in a database or some
global directory or  JNDI/LDAP) then you can manage
your HTTP connections and request rather well and get
good multi client performance.

Wade

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to