• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Starting a background thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Starting a background thread
      • From: Jeff Schmitz <email@hidden>
  • Prev by Date: Re: JDBCAdaptor.isValidQualifierType NullPointer
  • Next by Date: Re: Starting a background thread
  • Previous by thread: Re: JDBCAdaptor.isValidQualifierType NullPointer
  • Next by thread: Re: Starting a background thread
  • Index(es):
    • Date
    • Thread