5 Replies Latest reply on Apr 15, 2002 3:50 PM by Juha Lindfors

    Holder valve in MX?

    marc fleury Master

      So one of the sexy features that the microkernel approach brings to the table is something like this:

      A (connector or not) calls MBean B, imagine bean B goes under maintenance and you stop it for a period of time.

      A is still sending threads to B. Can we build a "valve" in the MX base that holds threads while the MBean is under maintenance?


      synchronized(targetLock) { targetLock.wait();}

      and when the target is ready (notification based)

      targetLock.notifyAll();

      you get the idea. I am pretty sure it should be at the core invocation level, although you could possibly do it at the interceptor level. I don't know.