>From: Rickard �berg <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [Fwd: [JBoss-dev] JMX service architecture: next gen++]
>Date: Tue, 02 Oct 2001 10:07:23 +0200
>
>Example: MBean XYZ wants the interceptor chain A,B,C (where C handles the
>call). Somehow this config info is given. An interceptor stack management
>MBean (MGMT) knows this, and for each incoming call the actual runtime
>chain
of invocations looks like this:
>1. Connector.invoke (incoming call) 2. MGMT.invoke (MGMT is delegated to,
>and in turn delegates to first in
chain)
>3. A.invoke (do the A stuff, delegate back to MGMT) 4. MGMT.invoke
>(determine that the chain has progressed past A, delegate to B) 5. B.invoke
>(similar as 3) 6. MGMT.invoke (same as 4) 7. C.invoke (similar as 3,
>delegate to XYZ through reflection) 8. XYZ.invoke 9. return through
>interceptors 10. Connector.invoke return result
Since it seems like the configuration would define a static stack of
interceptors, MGMT could build a java.util.Stack containing the interceptors
and pass that down. Avoiding the delegation back to it.
Regards,
Hiram
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development