• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web services with mulithreading

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if multithreaded system access web services, then how each thread are differentiated by web service and object (object instance) in each thread is served by web service?
[ September 24, 2008: Message edited by: jacob deiter ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically the container - for example Tomcat for a HTTP based service - assigns one Thread to handle one request. It is up to you the programmer to follow good practice so that multiple requests "at the same time" do not interfere.

Bill
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think about servlets, same applies to web services as well. Each web service request/response cycle will be processed by distinct thread on server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic