aspose file tools*
The moose likes Servlets and the fly likes Identifying clients uniquely Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Identifying clients uniquely" Watch "Identifying clients uniquely" New topic
Author

Identifying clients uniquely

Sumeet H Singh
Greenhorn

Joined: Jan 03, 2009
Posts: 29
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: 61652
    
  67

Most of the network connection stuff is behind the scenes at a lower level than the interfaces that the container exposes to servlets.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
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
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

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
 
wood burning stoves
 
subject: Identifying clients uniquely