I wanted to see how to use the setThreadPool() functionality. Let\'s say my main class is the following:
setThreadPool()
import javax.servlet.SingleThreadModel; imp
Here is an example:
QueuedThreadPool threadPool = new QueuedThreadPool(); threadPool.setMaxThreads(5); server.setThreadPool(threadPool);
You can also use the following:
server.setThreadPool(new ExecutorThreadPool(5, 10, 10, TimeUnit.SECONDS))