Could it be that this != this because one method works on a hivemind proxy and the other one on the unproxied core implementation?

Achim

John Coleman wrote:

Hi,
Any ideas if it could be HiveMind stopping this wait/notify code running? public void dispatchEvent(EventObject event) {
    events.add(event);
    System.out.println("dispatch event..." + event);
    synchronized (this) {
      notify(); // break wait state
    }
    System.out.println("notified");
  }
// a loop to dispatch events to the correct type of listeners
  public void run() {
    // loop handling all events until stop is true
    do {
      try {
        // wait for some event notifications
        synchronized (this) {
          wait();
        }....
If I do wait(10) then code works fine, but the sync blocks don't seem effective. If I directly instantiate the classes w/o HM, then code works! John

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to