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: 
http://old.nabble.com/Need-to-create-a-new-thread-for-async-operations-tp30625163p30625746.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to