Starting a background thread
Starting a background thread
- Subject: Starting a background thread
- From: Jeff Schmitz <email@hidden>
- Date: Mon, 9 Jul 2007 23:21:56 -0500
Hello,
In the past I've been able to start a background thread from a WOComponent in my Application with no problem. However, now when I do this, while the thread is running if I try to access my application, I get a "Your request produced an error" message returned to the browser. The component that starts the thread returns normally, and there are no exceptions raised in my application, but while the thread is running I can't connect to my app (which was the point of doing the processing in the background to begin with). Once the thread completes, everything returns to normal.
I start my thread as follows:
t = new Thread("updateResults") { public void run() { updateResults(); } }; t.start();
Again, this has always worked in the past. The only thing I can think that is different now is that I'm using Intel. Also, I've only tested this from within my development environment (I don't currently have a deployment machine). Any ideas?
Thanks, Jeff |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden