Get your CodeRanch badge!*
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 Java 8 in Action this week in the Java 8 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: 12683
    
    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


Java Resources at www.wbrogden.com
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web services with mulithreading
 
Similar Threads
use of XML in the webservices
Newbie - web service design assistance needed
A Web Service
Shall I call a web service with Object type object
Can multiple users call a web services at the same time?