> The use of 'this' is neither redundant nor allowed here -- the
> methods (recibirPeticion() and enviarPeticion()) are static and
> there is no 'this' in class methods. A 'synchronized static' method
> synchronizes on the class object.
Jeurgen is of course right, sorry I didn't take enough time to look at the
code properly.
I believe it is possible to do a wait() on the class object also, but it
is better practice to synchronized on an explicit lock object as Juergen's
example provides.
. . . Sean.