Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Identifying clients uniquely

 
Sumeet H Singh
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64856
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most of the network connection stuff is behind the scenes at a lower level than the interfaces that the container exposes to servlets.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the container job to identify the client for request and response for the resources.

we donot need to worry for that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic