[infinispan-dev] ResourceDMBean.invoke() should only allow for methods marked with @ManagedOperation to be called from MBeanServer.invoke()
Vladimir Blagojevic
vblagoje at redhat.com
Tue Sep 8 13:38:15 EDT 2009
On 09-09-08 12:58 PM, Galder Zamarreno wrote:
> Yeah, this is correct. In a standard MBean, the operation called must be
> part of the MBean interface, otherwise it fails. So, it must be exposed
> somehow. In a required model mbean, the operation must have been defined
> as an MBean method.
>
> So, yeah, ResourceDMBean.invoke() needs to check whether the method
> called is a managed operation or not. I'll create a jira for this asap.
>
Bela and I deviated from spec intentionally because we liked the fact
that you could expose all class methods by simply annotating class with
@MBean. Either way it should be simple to fix.
Cheers
More information about the infinispan-dev
mailing list