thread « Tomcat « JSP-Servlet Q&A





1. Starting a threadpool in a servlet container    stackoverflow.com

I have a servlet S which handles callbacks from a 3rd party site. The callback invocations happen in a specific order. Thus, I need to queue them. I propose to use ...

2. Background Thread for a Tomcat servlet app    stackoverflow.com

I am not very familiar with Tomcat, in my head it is basically abstracted as a cgi server that saves the JVM between calls -- I know it can do a ...

3. automativ thread starting in tomcat    stackoverflow.com

i want a thread to start automaticalyy when my application on tmocat is started. How do i do that.Do i have to add something to web.xml??

4. Servlet doesnt appear to execute in a threaded manner    stackoverflow.com

I have developed a simple server using Tomcat which runs a servlet. The servlet calls a command line program - which takes about 20 seconds to execute then returns the result ...

5. Does tomcat create a thread per user?    stackoverflow.com

I am fairly new to web development. So I apologize if this is a very basic question. For example, I create a web application and deploy it to tomcat. Now when ...

6. Create concurrent HashMap in webapp    stackoverflow.com

What is the best way to make threadsafe HashMap in Tomcat ?I'm going to create ConcurrentHashMap on InitServlet once on load on my application.

 (<load-on-startup>1</load-on-startup>)
Requests from different threads will read and ...

7. Apache multi process model vs Tomact multi thread model    stackoverflow.com

I'm a newbie to the J2EE world and I was wondering about the performance of Tomcat Multi Threaded model for Servlets as opposed to Apache Multi Process model. In a traditional ...

8. Implementing the AsyncContext notifier thread    stackoverflow.com

Here's the scenario:

  • typical web push/comet application where short messages must be pushed at the same time to 3000-4000 connected users;
  • moving from 1 thread/connection model to a new implementation using Servlet 3.0 ...

9. JSP, Tomcat and Threads    coderanch.com

Yes you can do anything in a servlet (or JSP) that a free-standing Java application can do (subject to possible security control by the servlet engine). There is nothing magic about the servlet environment that changes the way Threads operate. I have used separate Threads to manage sending email, load headlines from another site, etc. You do have to think very ...





10. Apache Tomcat 6 Background thread    coderanch.com

11. What happens to threads started from a Servlet when Tomcat is stopped?    coderanch.com

I'm working on an application that starts several threads from a Servlets' init() method. These threads check periodically for the availability of a local map servers by sending a request and examining the response code. Lately we have been seeing way too many of this type of request coming to the map servers and I'm wondering if some threads from a ...