3 Replies Latest reply on Oct 15, 2003 8:02 PM by adrian.brock

    Deadlock on shutdown

    natemc

      I'm running jboss-3.2.2RC4 on Win2K.

      The attached program hangs. The receiving thread is trying to lock the session in SpySession.commit(). The main thread is holding the session's lock. It's inside SpySession.close(), waiting for the receiving thread to exit.

      It seems to me that, in order to prevent this situation in general, I'd need to introduce a separate object to lock and be prepared to rollback.

      Hopefully I'm missing something really basic, and someone can clue me in.

      Thanks,
      Nate