[infinispan-dev] ResourceDMBean.invoke() should only allow for methods marked with @ManagedOperation to be called from MBeanServer.invoke()

Galder Zamarreno galder.zamarreno at redhat.com
Tue Sep 8 12:41:05 EDT 2009


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?

Cheers,
-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the infinispan-dev mailing list