tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Captain Cid <captain_...@indiatimes.com>
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: 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message