my dog learned polymorphism
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

Identifying clients uniquely

Sumeet H Singh

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

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] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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.

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
jQuery in Action, 3rd edition
subject: Identifying clients uniquely
It's not a secret anymore!