Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: Multiple response for a request and connecting to client


Message #1 by "Mohamed Zafer" <mzafer@e...> on Wed, 24 Jan 2001 06:15:10 -0000
Hello Friends,

   The application I developed works as follows. 

1. It(Servlet) accepts a request from the client(JSP or HTML)
2. Passes the request to another component and gets the response from the
component.

  Here,their are two cases

    a. The component may return the response to the  servlet immediately,
and the servlets sends the response to the client.

    b. THe component may  be busy processing another request, hence may
ask the servlet to wait for some minutes, if so then the servlet should
send an acknowledge to the client that " You are in queue and will be
given a response after a few minutes"
and wait for the response from the component. After a few minutes when it
gets the response from the component it should establish connection to the
client and send the response.

Now the issues are

  1. Since the number of requests are high it is not possible to make the
client wait for the response(as the session may expire), hence I should
the store the cleint details and establish a connenction with the client
when the servlet is ready with the response. how is it possible.

  2. How can I store the client details(infact, what are the details to be
stored) and establish a connection from the server.

  3. I have to pass multiple response for the client's
request(1.Acknowledge 2.The actual response).And this should be done after
a interval of time. Using servlets it is not possible to send multiple
responses, so how can I achieve it.


Instead of using servlets is their any alternative throug which I can
accomplish this.

Hoping a reply at the earliest

Mohamed Zafer

  Return to Index