[jboss-dev-forums] [Design of JBossCache] - InvocationContext in JBCMethodCall?

bstansberry@jboss.com do-not-reply at jboss.com
Sun Mar 25 10:00:45 EDT 2007


Minor food for thought...

While responding to a user forum question (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104915) it occurred to me that other interceptor-based architectures I see include call-context metadata as an internal field of the Invocation object that gets passed through the interceptor chain on the stack.  In JBC we are separating it out into the InvocationContext ThreadLocal.

Since JBC is now using its own MethodCall subclass, including the InvocationContext metadata in the invocation object itself is possible.

There are downsides to this, and it might break things I haven't thought of. If we ever move away from using JBCMethodCall as our "Invocation" class (part of reducing coupling to JGroups) we should be sure to think about merging the InvocationContext back in.

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

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



More information about the jboss-dev-forums mailing list