Results 1 to 2 of 2
  1. #1
    Rickyp is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default JAVA web service (XML-RPC) is it multi threaded?

    Hello ALL

    I have, i hope, a simple question.

    I use java XML-RPC web services to expose a bit of functionality. see below

    ProcessWs.java

    @WebService
    @SOAPBinding(style = Style.RPC)
    public interface ProcessWS{

    @WebMethod CleanReturn Clean(String xml);

    }

    ProcessWsIMPL.java

    @Override
    public QASCleanReturn QASClean(String xml) {
    ....
    ...
    (CODE)
    ....
    ....

    }

    what i would like to know is, if two clients were to make a call to this web service at the same time will it be multi-threaded and processed both calls at the same time? Or will the process one call and queue subsequent requests?

    Many thanks in advance for all the help

    Ricky

  2. #2
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Default

    Calls would be multi-threaded, but you will have to make sure that your code is synchronized (i.e no two calls are simultaneously changing critical data)

Similar Threads

  1. Implement a multi-threaded matrix multiplication program.
    By redasu in forum Threads and Synchronization
    Replies: 0
    Last Post: 11-17-2010, 10:00 AM
  2. Threaded algorithms
    By TerTer in forum Threads and Synchronization
    Replies: 0
    Last Post: 04-20-2010, 03:58 PM
  3. Writing into a File in a Multi Threaded app.
    By snehalkgandhi in forum Threads and Synchronization
    Replies: 1
    Last Post: 12-19-2008, 06:10 AM
  4. Replies: 0
    Last Post: 04-07-2008, 09:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •