Problem notifing objects.
One object do that:
boolean ack_recibido = peticion.enviarRequest(request,this);
if (ack_recibido==true)
{
try{
wait(timeout);
System.out.println("timeout passed");
return reply;
}catch (InterruptedException e){
e.printStackTrace();
}
}
returnnull;
and another do that:
publicvoid devolverRespuesta(byte[] reply){
System.out.println("estamos en la clase peticiones");
System.out.println(new String(reply));
arrayComandosRecibidos[contadorComandos-1].setReply(reply);
arrayComandosRecibidos[contadorComandos-1].notifyAll();
}
arrayComandosRecibidos[contadorComandos-1] is the objectt which is waiting, and setreply works, but it not wake up until timeour.
縃ow can I wake up the onject if notify does not work?
Thanks for the answer.

