Is the following possible :-)

0
Servlet class doesn't keep every "http session" always_open, but make a
"stream counter" to remember the "position" of every stream for every
client,  and use ["session tracking"]/[define a "symbol" for every client]
to distinguish every client. :-)

1
but if it is possible, the stream will not be "very streamable", perhaps
it is not suitable for audio stream :-)


Bo
Oct.20


David Mossakowski wrote:

> The way I did it is this:
>
> Client (most likely an applet) makes a programmatic request using
> URLConnection.  It then goes into reading loop and stays there until instructed
> to get out by a SHUTDOWN message (I use simple messaging protocol not
> serialization of class objects).  It pieces together the messages received and
> parses them.
>
> The servlet takes the request and creates a wait/notify queue.  That queue is
> given to the 'processing engine' that puts messages onto the queue.  The
> 'processing engine' is in a separate thread and it puts messages onto queues it
> got from other requests (that are interested in the subject).
>
> That queue acts as a link between the servlet writing the data to applet and
> the 'processing engine' so it must be multithread safe.
>
> There is a BIG overhead associated with this mechanism.  It is the fact that
> you have to keep an HTTP session open for as many clients as want data.  It's
> the concurrency of a large number of requests that stay around that's the
> killer.  If there is anyone here who might have done something like this and
> has suggestions I would like to hear them.
>
> d.
>
> R�bert P�rhonyi wrote:
>
> > Hi everybody,
> >
> > I'm looking for possibilities and strategies to send streaming data
> > using a servlet.
> > Any directions, urls, sample classes are welcome! Thanx.
> >
> > regards,
> > Robert
> >
> > ___________________________________________________________________________
> > 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
>
> --
> David Mossakowski              [EMAIL PROTECTED]
> Programmer                           212.310.7275
> Instinet Corporation
>
> "I don't sit idly by, I'm planning a big surprise"
>
> ___________________________________________________________________________
> 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

Reply via email to