Thread Controlling


EJB design: Thread Controlling

  1. Thread Controlling (4 messages)

    how can you control a thread, if the instance is in another class and the thread you're controlling is also in another class. the error message was notowner something(it's quite long).

    Threaded Messages (4)

  2. Exception?[ Go to top ]

    Did an exception occur?

    Do you have a stack trace?
  3. Exception?[ Go to top ]

    Yes an exception occured ---> NotOwner......
    No I don't have the stack trace
  4. Exception?[ Go to top ]

    You didn't say exactly what operation you were trying to perform when you got this error, but by your error message I would guess you tried something like Object.wait() or Object.notify(). If that is the case, then in order for it to work you must first aquire the monitor of the specified object, as in:

    synchronized(obj) {

    I couldn't quite understand from your message if this is what you are trying to do. If you elaborate on what you are trying to accomplish I could help you with your specific problem.

  5. Exception?[ Go to top ]

    thanks, it worked.