Hello All
I don't know whether to post this here or in the multi-threading section so I'm starting here
I have a
servlet that is the backend for a site where people enter zipcodes as part of some data they're entering
this data goes in a database
for each zipcode I want to go to one of the weather sites (weather.com) and download a lot of weather data for that zipcode
it's a time consuming process so in my init() function I set up a Timer which periodically fires off a
thread to go do this background work
when I run the servlet in a debugger (I'm using Netbeans) everything works fine, but when I stop debugging the servlet the worker thread keeps running
so, I guess my question is this
if you have a servlet that requires a bunch of "house cleaning" chores (getting weather data) to be done periodically, what's the best way to achieve this?
Dave