[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Valve on HAAspect

clebert.suconic@jboss.com do-not-reply at jboss.com
Fri Dec 22 18:22:13 EST 2006


I have reactivated ValveAspect on my local box, and I had a dead lock with MessageCallbackHandler::copyState.

Another thread was holding a lock to the MessageCallbackHandler while clientFailover was trying to call copyState whith a waiting to lock.

I had to remove the lock, and I will probably commit this:


  |    public void copyState(MessageCallbackHandler newHandler)
  |    {
  |       //synchronized (mainLock)
  |       //{
  |          this.consumerID = newHandler.consumerID;
  |          
  |          this.consumerDelegate = newHandler.consumerDelegate;
  |          
  |          this.sessionDelegate = newHandler.sessionDelegate;
  |          
  |          this.serverSending = false;
  |          
  |          this.buffer.clear();
  |       //}
  |    }
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995973#3995973

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995973



More information about the jboss-dev-forums mailing list