Hi > >But the MBean doesn't have too and for DynamicMBean you have > >to rename them different as "XXXMBean" !! > > Who said anything about using a MBean suffix?
StandardMBean requires that. You could (unlikely but possible) run into a problem when the XXXMBean you need for a StandardMBean want to apply to a Dynamic MBean because this is forbidden. > >But now you have to use reflection one time more than necessary. One time > >in the MBeanProxy and them maybe in the MBeanServer (exception for > >Dynamic MBeans handling the mapping on their own). > > So cache the values, or cache the handler. On a method invocation ? How do you speed reflection up with this ? > This is not specific to any type of MBean. You mean with respect to Dynamic MBeans ? Dynamic MBeans invoke() method gets called and when it makes it own mapping then NO reflection is necessary. > >But you loose: > >- you have to manage an additional Interface not always necessay > >(DynamicMBeans) > > > > The interface is always there... if it is a Java interface or not. > Using a Java interface only makes it easier to catch problems. XMBean as example only have a XML deployment descriptor. The JMX management interface is, by the spec., only fixed when the MBean gets registered at the MBeanServer. It could adapt to environment etc. But this shouldn't be the case here. > >- you loose the ability to investiage the object at runtime (is a method, > >attribute available > > or not etc.) > > How so? You DO NOT loose anything! What is stopping you from using the > MBeanServer directory when you need to? Ummm... nothing! Don't you think this is pretty ugly when you use the MBeanProxy and the default way to access the MBeanServer as well ? > >Because in our project performance is pretty important I think MBeanProxy > >should be used rarley > > Do you have any real numbers to show that the use of a proxy is slowing > down the system? Will create an example and come back to you, soon. > >and then we have two different ways to handle JMX calls. > > Where? MBeanProxy still does a MBeanServer.invoke()... MBeanProxy.doSomething() vs. MBeanServer.invoke( name, "doSomething", ... ) Andy _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
