• 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
WOJC Thread-Problem... makes me crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOJC Thread-Problem... makes me crazy


  • Subject: WOJC Thread-Problem... makes me crazy
  • From: "Oliver Leu" <email@hidden>
  • Date: Thu, 8 Jan 2004 06:41:18 +0100

Dear list

WO5.2 Mac OSX 10.2, Non-Direct2JavaClient with InterfaceBuilder.

I added a "TimerThread" to my server.
That thread scans every 30 seconds an directory on the server.
If my thread finds some information in the directory, the thread does a lot
of operations like parsing files, serializing objects, writing them to disk,
write some
informations to the DB (openbase) using EOF.

And it works!

BUT...

In case a client accesses the DB (ec), the serverthread doesn't the work
anymore!
No, error-mess., no exception, nothing.
Eventually I produced a deadlock? But I'm not experienced in
thread-programming.
I also tried to lock the ec [lock(), unlock()], but without a resultat.

On serverside I get the ec via:
Session session= new Session();
ec = session.defaultEditingContext();

I assume that the mistake is "around wrong handling of editing context"?!

Thanks for your help.

Oliver
***
_______________________________________________
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.

  • Follow-Ups:
    • Re: WOJC Thread-Problem... makes me crazy
      • From: Nick Pilch <email@hidden>
  • Prev by Date: how to pass an object
  • Next by Date: Re: how to pass an object
  • Previous by thread: Re: how to pass an object
  • Next by thread: Re: WOJC Thread-Problem... makes me crazy
  • Index(es):
    • Date
    • Thread