WOJC Thread-Problem... makes me crazy
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.