Marcello Marangio wrote:
Hi all.
I am still dealing with he locking mechanism between different instances of
james.
Just a curiosity: why use the Lock class instead of synchronizing methods? Am I missing something?

Because James still have the ability to loop through the mails and safely fail locking when a message is already being processed by other threads.

Look at the "lock()" code and at the code calling lock() to understand.

Stefano


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

  • About locking Marcello Marangio
    • Re: About locking Stefano Bagnara

Reply via email to