TimerTask considerations.
TimerTask considerations.
- Subject: TimerTask considerations.
- From: steve stout <email@hidden>
- Date: Tue, 24 Feb 2004 15:33:04 -0700
Here's the situation. I have an app that needs to export data (via
FTPS) every 5 mins or so. What happens is the app accepts transactions
(deposits for a campus meal plan) from the users and saves that to the
db. For the deposit to actually be credited to the patron's account I
have to send off a text file to another server to be imported.
My problem is that this export can't get interrupted while it's in
progress. The 2 most common situations that this might happen is a
scheduled restart every night, and if I need to update the app.
So my question is, how do I keep the thread that this task is running
in from letting the app quit until the thread quits? Or should I just
forget about having this in the app and move it to a separate app that
can be started from cron?
///---------------------------------------
steve stout
web coordinator
arizona student unions
52o.626.o1o9
http://www.union.arizona.edu
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.