Hi all,
Im developing a chat application using the model of the Sink and
the Source as in Jason Hunters Book on Servlet Programming. This example
in chapter 10 creates a sink whenever a new "receive new messages" request
is recd from a user. When a broadcast is done, a message source is created
and the message is sent to it. This wakes up all the sleeping listeners
(Sinks) and sends a message to each of these. I have some doubts regarding
this architecture:
a> What happens if a post is done before a particular user's "receive
messages" request is recd? What i mean to say is that since there is no
way for the servlet to know from which user the request is recd and to
whom the response is going, what happens when a user, maybe due to his
slower connection, doesnt have a Sink on the server when a post message is
recd??
b>How suitable is this architecture for a real world application on the
internet? Is there a better design for such a scenario??
Im held up on my project because of this, kindly reply urgently.
Thanks a lot!
Rajesh
Without the rocks in its bed,
The stream would have no song......
* * * * * * * * *
___________________________________________________________________________
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