if (target instanceof com.sun.messaging.jmq.jmsserver.core.Consumer)
{
// notify on the ConsumerUID
com.sun.messaging.jmq.jmsserver.core.Consumer cc =
(com.sun.messaging.jmq.jmsserver.core.Consumer) target;
ConsumerUID cuid = cc.getConsumerUID();
if (cc.isBusy()) {
synchronized (cuid) {
// we cant check isBusy in here - we can deadlock
// so instead look in the cuidNotify hashtable
cuidNotify.add(cuid);
//ok, we want to wake up the thread currently in
// getNextConsumerPacket.
// it is waiting on the ConsumerUID
// so do a notify on ConsumerUID
cuid.notifyAll();
}
}
return;
}