[jboss-dev-forums] [Design of POJO Server] - Re: bean/mbean integration issue
adrian@jboss.org
do-not-reply at jboss.com
Thu Jan 11 10:12:06 EST 2007
The kernel bus hasn't really had any work done on it.
The original idea was that it would provide a generic entry point for invocations
on different contexts, e.g. Properyt/MethodJoinpoints for POJOs
Attributre/OperationJoinpoints for JMX.
Its main use would be to replace the Dispatcher (AOP remoting) and
org.jboss.system.Registry (JBossAS's detyped invokers)
as a common entry point for named based invocations.
However, I agreed with Bill about 2 years ago that rewriting AOP and JMX
to support a common Joinpoint abstraction would be a lot of work.
If it is to be done at all it would left to a later iteration.
Scott's idea of adding a "dispatch" abstract to the context api
would work. In fact, I really want to change the BeanInfo api to support
this notion like the ClassInfo api already does (i.e. there get/set methods
on fields and invoke on methods).
The api would be more like the DynamicMBean api
where there are methods to get/set Properties/Attributes and invoke on
methods/operations with each context knowing how to do this, e.g.
ServiceControllerContext -> MBeanServer
KernelControllerContext -> Configurator (or in future as I said above BeanInfo)
This later approach essentially moves the implementation of the Bus from
a joinpoint based abstraction to a context based abstract.
The main downside is that the Bus can in principle invoke on things
that are registered directly (or indirectly via a KernelRegistryPlugin)
that don't have a context in the controller per-se, but there is already
"a hack" in the controller that knows how to make it seem these
have a context.
P.S. It is better to create JIRA issues when we have discussed the issue
and agreed what we want to do.
Forums == dicussions
JIRA == what we decided needs doing
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000485#4000485
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000485
More information about the jboss-dev-forums
mailing list