tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <mil...@gmx.de>
Subject Re: Need to create a new thread for async operations
Date Sun, 09 Jan 2011 16:46:30 GMT
Captain Cid schrieb am 09.01.2011 um 08:27 (-0800):
> I want to start a new thread in service impl constructor.

That's not necessarily the best place.

> 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.

javax.servlet.ServletContextListener

-- 
Michael Ludwig

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


Mime
View raw message