On 09/08/2009 06:41 PM, Galder Zamarreno wrote:
Hi again,
Another thing I've spotted. I've realised that you can
MBeanServer.invoke() to call any method on a class that is exposed as
MBean via @MBean annotation because of the logic in ResourceDMBean.invoke().
Shouldn't such invocations be limited only to those methods that have
been exposed via @ManagedOperation?
Actually, I'm not sure about this. Need to check the spec.
Cheers,
--
Galder ZamarreƱo
Sr. Software Engineer
Infinispan, JBoss Cache