Thread Blocking and Wakeup
I have a networked App where the server is controlling the stages of the application. It sends a request to the client (one of) and waits for a response.
The response will come in from the client at some point in the future in a seperate thread, and if I use wait and notify, I get java.lang.IllegalMonitorStateException: current thread not owner.
Is there a way to wake up the controller following an event when the event notification comes in from a thread other than the controller's thread?
Any help would be much appreciated. I may be forced to resort to polling a data area every few 100 milliseconds, which is quite nasty.
Cheers
Wayne

