Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

asynchronous response to a jsp  RSS feed

 
Ritesh Srivastava
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page which is required to send some messages to a servlet. But the user is is not going to get response immediately.
We need to have a system on the web server which will send responses to only those browsers which are connected(logged in) to the server.

This is not a typical request-response model of a web server. The responses which needs to be sent to different users will be stored in a database (an asynchronous system). A separate thread on the server will pick the responses and send it to different users who are logged in.

The problem is, how a server is going to recognize which browsers are connected and what is the protocol through which the server is going to send response?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since all of your requirements are definately NOT the kind of thing that JSP was designed for, why are you thinking of this as a JSP problem?


Seems to me you should be thinking in terms of distributed systems or web services for which the ranch has dedicated forums.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!