Faraz Rasheed wrote:

*Hi,*



I am developing a web service using axis. The problem is that, by default, the axis web services are multithreaded (more than one threads are used to entertain user requests). What I want is a single threaded web service which uses a single thread to entertain all the user requests. Is it possible? If yes then how?

Write your own class:


import javax.servlet.SingleThreadModel;
import org.apache.axis.transport.http.AxisServlet;

public class SingleThreadedAxis extends AxisServlet
       implements SingleThreadModel {
}

and register this class in web.xml instead of AxisServlet.
This will delegate handling of your problem to servlet engine.
But I'm worry, that Axis itself do some thread managmenet.
If yes, maybe somebody having better understanding of Axis
internals will help.

HTH,
Tomek

*Faraz Rasheed



Reply via email to