Two Laptop Bag*
The moose likes Web Services and the fly likes web services with mulithreading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web services with mulithreading" Watch "web services with mulithreading" New topic
Author

web services with mulithreading

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
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

Joined: Mar 22, 2000
Posts: 12759
    
    5
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

Joined: Sep 30, 2008
Posts: 198
Think about servlets, same applies to web services as well. Each web service request/response cycle will be processed by distinct thread on server.


My Blog
 
Consider Paul's rocket mass heater.
 
subject: web services with mulithreading
 
Similar Threads
Can multiple users call a web services at the same time?
Shall I call a web service with Object type object
Newbie - web service design assistance needed
A Web Service
use of XML in the webservices