Yes, there is a way, and I suspect you're doing "fire-and-forget" processing, but, could you give us a better idea as to what you are trying to do?
Tomcat will handle servlet requests in multiple threads if needed, anyway. So it may not be necessary. I'm thinking you might want to investigate a messaging system, such as OpenMQ. BTW: To create a thread by hand, look at the Java docs for the Thread class and the Runnable interface. Keep in mind, this could get really out of hand if there are a lot of requests and you don't understand how to properly manage threads in this environment. Joe -----Original Message----- From: David Balažic [mailto:xerc...@gmail.com] Sent: Monday, November 16, 2009 11:44 AM To: Tomcat Users List Subject: Possible to do async processing? Hi! We are using tomcat 6.0 and now we have the need to trigger from the service() method of a servlet. So: - a request arrives - the servlet triggers an async event - servlet sends response and closes - the async task is done (independent of servlet opeartion) Is there a way to do this? Or create threads by hand? Regards, David --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org