| Author |
Identifying clients uniquely
|
Sumeet H Singh
Greenhorn
Joined: Jan 03, 2009
Posts: 23
|
|
Hi,
Consider that 2 clients have sent a request to a server...while responding back, how does the server uniquely identify each client?
Which value(s) in HttpServletRequest exactly help the server to uniquely identify a client so that it can send back the response to the corresponding client?
Thanks in advance...
|
Sumeet
SCJP, SCWCD
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
|
Most of the network connection stuff is behind the scenes at a lower level than the interfaces that the container exposes to servlets.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
Note that each request is running in it's own Thread and has the request and response objects which are tied (thru stuff you don't have to worry about) to the actual socket connection.
Therefore, the Thread does not have any confusion with other requests.
Bill
|
Java Resources at www.wbrogden.com
|
 |
Shanky Sohar
Ranch Hand
Joined: Mar 17, 2010
Posts: 1046
|
|
This is the container job to identify the client for request and response for the resources.
we donot need to worry for that.
|
SCJP6.0,My blog Ranchers from Delhi
|
 |
 |
|
|
subject: Identifying clients uniquely
|
|
|