tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Captain Cid <>
Subject Re: Need to create a new thread for async operations
Date Sun, 09 Jan 2011 19:30:57 GMT

I have moved the thread creation to constructor of a class which is
instantiated by spring.

Can you elaborate how to spawn thread in it using
javax.servlet.ServletContextListener ? 

Captain Cid wrote:
> I am having a CXF webservice impl class. In this I want to start a new
> thread in service impl constructor. This is because I need to run a thread
> will continuously do some operation in background using database. And I
> need to be able to stop it when tomcat is shutdown.
> I was searching net. Found that it can be done using executor etc. But
> still I am unable to find it. Any help appreciated.

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message